Knowledgebase: Web Hosting > Tutorials
How do I create a MySQL database?
Posted by Cody R., Last modified by Brian F. on 13 October 2010 12:16 AM
In order to create a MySQL database you must first login to cPanel and follow these steps:

  1. Select the "MySQL Databases" option (you can use the search in the top left to find the option quickly) (Picture)

  2. Under "Create New Database" there is a text box to put your database name. Put in the name you would like and click "Create Database" (Picture)

  3. After you add the database you now must create a user and assign it to that database. To do this scroll down on the page and you will see an area to create a user. Enter the username and password you want and click "Create User" (Picture)

  4. Now you must assign the user to your database. Further down on the page there is a section called "Databases" - it will list your database and user you just created. Make sure the two dropdown boxes match the correlate to the database and user you just created and then click "Add" (Picture)

  5. You will be prompted with a screen asking for which permissions you want to grant the user. If you're not sure simply click "All Privileges" and click the submit button. (Picture)

  6. You can now use your database by supplying your script with the appropriate database and username.
(85 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).