# 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;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sys.disetti.it/system-administration/plesk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
