How do I create a MySQL database and user in cPanel/WHM? How do I connect them?

To create a MySQL database and user, log into the cPanel interface for the desired domain and click on MySQL Databases under the Databases section.  At the next page, enter the new database name under the Create New Database field to create a new database. You can create a new user by specifying one under Add New User. 

To make sure that the MySQL users have access to specific MySQL databases, you can link them at the bottom of the page under Add User to Database.  The next screen will allow you to grant privileges for the MySQL user to the database you selected.

To connect to a database and administer it, you can use phpMyAdmin. You can access this by clicking the icon of the same name in the Databases section of cPanel.  
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

How to create a cPanel user account?

To create a new cPanel account go to WHM >> Account Functions >> Create a New...

How can I limit the number of emails a domain can send out per hour?

Click on the "Tweak Settings" link under "Server Setup". Within the "Mail" section is a text box...

How can I limit access to certain directories on my server by requiring a password using cPanel/WHM?

In cPanel, it is very simple to limit access to a directory on your server. This can be used to...

How do I prevent SSL Certificate Warnings when accessing cPanel?

All cPanel servers come with self-signed certificates configured to secure the control panel as a...

FTP - Uploading the Website

There are many ways that you can transfer files and folder to and from your hosting account. We...

Powered by WHMCompleteSolution