+234 916 042 1899
Sign in

How to Create a Database User in cPanel

How to Create a Database User in cPanel

How to Create a Database User in cPanel

Creating a database user in cPanel allows applications and websites to securely connect to your MySQL database. Database users are assigned usernames and passwords that control access to your database.

Follow the steps below to create a new MySQL database user in cPanel.

Step 1: Log in to cPanel

Access your hosting account and log in to your cPanel dashboard.

Step 2: Open MySQL Databases

In the Databases section, click on MySQL Databases (or Manage My Databases, depending on your cPanel theme).

How to Create a Database User in cPanel

Step 3: Create a New Database User

Scroll down to the MySQL Users section.

In the Username field, enter the username you want to create for your database user.

How to Create a Database User in cPanel

Examples:

  • wordpress_user
  • website_admin
  • app_user

Choose a username that is easy to identify and relates to the database it will manage.

Step 4: Set a Secure Password

Enter a strong password for the database user.

How to Create a Database User in cPanel

Alternatively, click the Password Generator to automatically create a secure password.

For better security, your password should include:

  • Uppercase and lowercase letters
  • Numbers
  • Special characters
  • Sufficient length

Step 5: Create the User

After entering the username and password, click Create User.

How to Create a Database User in cPanel

Database User Successfully Created

Once completed, cPanel will display a confirmation message indicating that the database user has been created successfully.

What to Do Next

Creating the user is only the first step. To allow the user to access a database, you will also need to:

  1. Add the user to a database.
  2. Assign database privileges.
  3. Save the permission settings.

Without assigning privileges, the user will not be able to manage or connect to the database.

Best Practices for Database Users

To improve database security:

  • Use separate users for different applications.
  • Avoid reusing passwords.
  • Grant only the permissions required.
  • Store credentials securely.

Tip: Save your database username and password in a secure location so you can easily retrieve them during manual website or application installation.

Post Your Comment

Build Your Website with Hosting Nigeria.

We are rated the best web hosting company in Nigeria!