This guide explains how to give an existing database user access to a MySQL database in cPanel. An application’s database credentials work only when that user has the required permissions on the intended database.
Select the user and database
Create the database and user first if they do not yet exist. See creating a MySQL database.
-
Log in to cPanel.

-
Open Databases > Manage My Databases, called MySQL Databases in older versions.



-
Under Add User to Database, select the intended user and database. Check any account prefixes in their full names.


-
Select Add.

Set and check privileges
-
On Manage User Privileges, select the permissions required by the application. Use All Privileges only when the application genuinely requires full access.

-
Select Make Changes and check the confirmation.


-
Test the application’s database connection using that user’s credentials. Adding privileges does not change its password or automatically update the application’s configuration.