How do I add a mysql database in Cpanel?


To create a MySQL database:

  1. Go to 'Manage Mysql' under the database header in Cpanel
  2. In the DB text field, type the name you wish to give your database 
  3. Click the Add DB button
  4. At the bottom of MySQL Manager under 'Users' type a database user name and password
  5. Click the Add User button

Now for the important part that everyone misses:

You should now see your new user listed in the dropdown menu after "User:" and your new database listed in the "DB:" dropdown menu. (if you don't try refreshing the page in your browser) Then, select BOTH the username AND the DATABASE NAME and click the Add User to DB button to add your user to your database and you're done.

Now that you have created a database, created a database user and have granted that user access to the database your mysql database is fully ready to use.

Was this answer helpful?

 Print this Article

Also Read

How do I create a table in a MySQL DB?

The following example shows how you can create a table named "person", with three columns. The...

What is the mysql host name and connection?

Your MySQL host name is localhost Create a Database , Database user on your cpanel. Then add...

Can I remotely connect to MySQL Database ?

Remote My SQL not available on our Shared servers.But this feature is available on VPS or...