Database users in Plesk

A site connects to its database as a database user. The first user is usually created together with the database. On the User Management tab you can add more users and change passwords.

Where to find it: Databases, the User Management tab.

User Management: list of database users
User Management: list of database users

How to add a user

  1. Click Add Database User.
  2. Enter the user name and the password (twice).
  3. Choose the database the user will have access to.
  4. Click OK.

The list shows which database (Database) and which server (Database server) each user belongs to.

Changing a password

  1. Click the user name in the list.
  2. Enter the new password and confirm it.
  3. Save, then immediately put the new password in the site configuration (wp-config.php, web.config, appsettings.json) — otherwise the site loses its database connection.

Changing the password of the user the site runs as breaks the connection at once, until the password is updated in the site settings. For .NET applications, then Recycle the application pool.

Tips

  • Create a separate user for each site and for a contractor — you can remove access without touching the site.
  • Use a long random password.
  • Delete users you no longer need: select them and click Remove.

Common mistakes

  • Access denied / Login failed — a wrong password, or the user is linked to another database.
  • For MS SQL — the connection string has no instance (see MS SQL in Plesk).
Questions and answers
The old password cannot be viewed. Set a new one in User Management and put it in the site settings.
It is simpler and safer to have a separate user for each database.