How do I create MySQL DB? Print

  • 6

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)

  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"

  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"

  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"

  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.

  6. You can now use your database by supplying your script with the appropriate database and username.

Was this answer helpful?

« Back