A database user needs permission before a website can use a database. In cPanel you link the user to the database and choose the privileges.
1. Log in to your cPanel account.
2. In the Databases section, click on MySQL Databases.
![]()
3. Scroll down to the end of the page and under Add User to Database. Select a user from the drop-down list, and choose a Database from the list.
4. Click on Add.
5. On Manage User Privileges. Mark the box ALL PRIVILEGES and click on Make Changes.
Which privileges to choose
Most websites such as WordPress need ALL PRIVILEGES. For limited tasks, you can grant fewer privileges for better security.
Update your configuration
After linking, put the database name, username and password in your website configuration file, for example wp-config.php for WordPress.
Frequently asked questions
Why do I get a database connection error? Check the database name, username and password. Both name and user usually start with your cPanel username prefix.
Can one user access several databases? Yes. Add the user to each database you want it to use.
Related guides
Need cPanel hosting in Kenya? See KickHost hosting plans or contact our team.
Found this useful? Share it.
