Your country & currency

Make yourself at home. Choose your preferred shopping currency.

Your selected country opens its KickHost website. Your shopping currency is saved. Visit country website .

Guide

How to Add a User to a Database and Grant Privileges

Add a database user to a database and grant privileges in cPanel. Steps for KickHost customers in Kenya.

Share

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.
Mysql databases icon

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.
How to Add a User to a Database and Grant Privileges

5. On Manage User Privileges. Mark the box ALL PRIVILEGES and click on Make Changes.
Add privileges

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.

Need a hand with this?

Our team can help you choose the right domain, hosting or server and set it up properly.

Talk to our team See hosting plans