Skip to main content
  1. Home
  2. Knowledge Base
  3. cPanel
  4. How to Create a New MySQL Database and MySQL Database User

How to Create a New MySQL Database and MySQL Database User

There are two ways to create a MySQL database and user in cPanel, this article will take you through the steps for the quickest method, using the Database Wizard.

Log in to GreenGeeks and go to the cPanel by clicking the “cPanel” button.

cPanel

Scroll down to the Database section, and click the Database Wizard option.

Database Wizard

Step 1: Create the Database

The first step of creating a new database is to create a name for it. Every database you make will have your domain name as the prefix. Enter the name in the available text box. 

Click the “Next Step” button once you have entered a name.

Next Step

Step 2: Create the Database User

The next step involves making a new user for your database. You will need to create a username and a password.

The username will always have your domain name as a prefix, similar to the database name. Enter the user name in the appropriate box.

Below this, there will be two more text boxes. The first is to enter your password and the second is to re-enter it. You must enter a strong password, or else it will be rejected.

You can also click on the “Password Generator” button to generate one. Once all fields have been entered, click the “Create User” button.

Create User

Step 3: Add the User to the Database

Lastly, you’ll need to add the user you just created to the database by selecting what privileges it has. While you can manually check the boxes you want, most will just check the All Privileges option.

Click on the “Next Step” button when you are done.

Next Step

And that’s it. Your database and user are now created and ready for use.

To manage your database(s) and user(s), log back into cPanel, scroll to the “Databases” section, and click the “Manage My Databases” option.

Manage My Databases
Was this article helpful?
Need Support?
Can't find the answer you're looking for?
Contact Support

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.