A database user is an application credential, not a cPanel login. Creating a separate user for each application makes it easier to control access and rotate one credential without disrupting unrelated sites.
IN THIS ARTICLE
Check access and requirements
Identify the database the application should use and the permissions required by its installer or documentation. Use a long unique generated password and store it securely. Do not put database credentials in a public text file or send them in an ordinary support message.
01 Create a database user in cPanel
- Open Manage My Databases, or MySQL Databases on an older cPanel layout. Find the section for creating a new database user.
- Enter the permitted username and a strong password. Create the user and record its full displayed name, including any hosting-account prefix.
- Use Add User to Database to select this user and the intended database. Grant the required privileges and save the assignment.
- Update the application’s database configuration with the new credential. If replacing an existing user, retain the old one until the new connection has been tested.
- When the transition is complete, remove unnecessary old privileges or credentials through cPanel.
Confirm the expected result
Perform a normal application read and a controlled write, such as saving a test setting. A user appearing in cPanel does not prove that it has been assigned to the correct database.
Why can the new database user not connect or run queries?
If authentication fails, check the full username and password first. If login succeeds but queries fail, review privileges and database selection. Keep database creation and user management in cPanel rather than phpMyAdmin so the panel retains correct ownership mapping.