How To Create A MySQL Database Print

  • 0

Let's learn how to create a MySQL Database.

MySQL Databases allow you to store lots of information in an easy to access manner. This tutorial will assume that you are logged into your cPanel. If you are having trouble doing that, please see the tutorial named How to Login to cPanel.

On the cPanel main page, type "SQL" in the "Find" box near the upper left corner

Click on the MySQL Databases icon. This will take you to the main MySQL Databases page.

First lets create a database

  1. There is a box below the heading Create New Database. Type the name of your new database into this box. For example, something like wrdpress, or mydata. Then click on Create Database button.
  2. This will take you to the verification screen, showing that the database has been created.

Now you need to create and add a user to this database. Click the Go Back link.

  1. Under the heading of Add New User, enter a new user to be added to your database in the Username box.
  2. You then need to enter and re- enter a password for the user.
  3. Click on the Create User button. This takes you to a screen to confirm that the user has been successfully created.

NOTE: You will want to make a note of the password for later use..

Finally you need to link the user to the database. Click on the Go Back link.

  1. In the section where it says Add User to Database, check to make sure that the correct user and the correct database are selected here. If the user and database are both correct, click on Submit to add the user to the database. This will take you to a screen called Manage User Privileges.
    NOTE: You will see that the username of the hosting account has been added to the beginning of both the user and the database with an "_" underscore between them.
  2. You can assign All Privileges to the user by checking the top box, then click Make Changes. This will take you to the final verification screen, that will confirm all the information.

This is the end of the tutorial. You can return to setup more databases,(as allowed by your hosting plan) add or remove users or delete databases at any time. Return to the main cPanel page by clicking HOME in the upper left corner.

You can now exit cPanel by closing your browser, or by using the Logout button in the upper right corner.

IMPORTANT: If you are using a public computer, ALWAYS Logout of cPanel before closing browser for security reasons


Was this answer helpful?

« Back