Generally, when you want to create a database in the cPanel, using the MySQL Database wizard is the fastest and easiest way. This creates both the database and a user for that database. However, you may need to either add a database user to a database or wish to create a single user you want to add to multiple databases. In that case, you will need to create the users manually. This article will guide you through the two step process to create a database user and then assign it to your desired databases.

Creating the database user

  1. Log into your cPanel dashboard.
  2. Locate the Databases icon from your main cPanel page and click on the MySQL Databases icon.
    select mysql database tool
  3. Once inside the database area, scroll down until you see the MySQL Users Add New User section. From here, you will see the form to create your new user. Note that the database name will always be prefixed with your cpanel username. Add the second portion to create the new database username. For example, our new user will be named inmoti6_imhtest.
    create new user name
  4. Type in the password you desire for both the Password and Password (Again) fields.
  5. Click the Create User button to complete the database user creation.

Assign the user to one or more databases

Now that you have created the user, it is time to assign it to the database or databases you wish for it to access. You will begin from the same Database page where you created the user.
  1. Locate the Add User to database section. You will see two dropdowns here. Select your desired user from the top dropdown and the database you wish to add it to from the lower dropdown.
    add new user to database
  2. Click the Add button to save the changes.
  3. You are brought to a screen that allows you to select privileges. Generally speaking you will want to click the checkbox for ALL PRIVILEGES. Selecting individual privileges is a customization for advanced users.
    add user privileges
  4. Click the Make Changes button at the bottom to save the user and privileges to the database. You will be able to see the new user in the user list for each database they are assigned to in the database list.
    user added to database
  5. Repeat steps 1-4 for any additional databases you want to allow the user to have access to.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2226
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5648

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!