DirectAdmin Manual

Helping you get the most out of DirectAdmin and your web!

Database users and passwords

A database user controls which application can connect to a database.

Where users are managed

Newer versionOpen Account Manager → Databases → Manage Users. A newly created user has no database access until it is explicitly granted.
Older versionIn MySQL Management, click the database name and use Create New User or Add Existing User.

Add a user

  1. Select the database.
  2. Create a new user or assign an existing one.
  3. Use a random unique password.
  4. Grant access only to databases required by the application.

Change a password with minimal downtime

  1. Prepare a new strong password.
  2. Change it in DirectAdmin.
  3. Immediately update the application's configuration file or environment variables.
  4. Test the website, administration and scheduled jobs.

The application reports a connection error until the passwords match. Separate email and DirectAdmin passwords are not changed.

Do not use the main account in an application

Use a dedicated database user for WordPress, PrestaShop or a custom application. It is easier to rotate, restrict and remove.

Back to chapter overviewContact Euroserver support