Change the password of the specific database user in DirectAdmin. A database can have more than one user, and a username can differ from the database name.
Change the password
- Open Account Manager → MySQL Management.
- Open the database and locate the user used by your application.
- Choose the password-change option, enter or generate a strong unique password, and save it.
- Update every application and script using that user's credentials.
Common configuration files include WordPress's wp-config.php and Joomla's configuration.php. Store the password securely and test the affected sites immediately.
Use the password rules shown by the panel. Do not weaken the password by assuming that symbols such as @, # or $ are forbidden. If an application treats a character specially, enter or escape it according to that application's configuration format.
If a site reports a database error, verify its database host, complete username, password and privileges. Do not create or delete databases to fix a password mismatch.