How to create and maintain MySQL Databases in cPanel

Databases > MySQL
  • This tutorial describes the process of creating and managing MySQL Databases in cPanel.

    There are two cPanel tools that allow creating MySQL Databases: MySQL Databases menu and MySQL Database Wizard. Let’s find out how each of them actually works. 

     Creating a database from the MySQL Databases menu
           1. In order to start, log into cPanel and click on the MySQL Databases menu in the Databases section: 

     2. Once there, find the Create New Database section, then simply indicate name of the future database and click on the Create Database button: 

       3. The database is created and ready to use. Now, in order to be able to fill and maintain the database, MySQL User should be created and assigned to the database with correct privileges. 
                 To create a MySQL User, find the section called MySQL Users > Add New User and choose the username you wish to assign to your database. Once done, choose a secure password for MySQL User and type it into the corresponding fields: 

           Create user and assign the user to Database.

     It is highly recommended to use the built-in Password Generator to create a secure password as shown below:

    Make sure that you save the password, as you will need it to maintain the Database in the Future. 

   4. In the next window you will need to set correct privileges to the MySQL User. In this example, we shall grant all privileges to be able to maintain our MySQL Database without any restrictions, so you simply need to choose the All Privileges option and                     click on the Make Changes button: 

     NOTE: It is important to remember that multiple MySQL Users with different sets of privileges can be assigned to the same MySQL Database. 

     5. Once finished, you will get the message stating that the MySQL User was successfully added to the Database: 

     To check this, you can simply go back to the MySQL Databases menu and check the Current Databases section: