> For the complete documentation index, see [llms.txt](https://sys.disetti.it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sys.disetti.it/system-administration/plesk.md). Agents can also search and read this documentation through its [MCP server](https://sys.disetti.it/~gitbook/mcp).

# Plesk

## Cli Commands

### Show all mail password

```
/usr/local/psa/admin/bin/mail_auth_view
```

### MySql access (linux)

```
mysql -uadmin psa -p`cat /etc/psa/.psa.shadow`
```

```
MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa
```

### MySql Access (Windows):

```
"%plesk_dir%\MySQL\bin\mysql" -P3306 -uadmin -p
```

### Show all FTP accounts and passwords

```
mysql > SELECT REPLACE(sys_users.home,'/var/www/vhosts//','') AS domain, sys_users.login,accounts.password
FROM sys_users
LEFT JOIN accounts on sys_users.account_id=accounts.id
ORDER BY sys_users.home ASC;
```
