MySQL

Create and maintain MySQL Databases in cPanel

Manage MySQL On cPanel Account

There are two ways to Create MySQL Databases:

  • MySQL Databases menu
  • MySQL Database Wizard

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
It is highly recommended to use the built-in Password Generator to create a secure password as shown below or type a strong password or try Strong Password Generator Or Cloudwards Password Generator Tool
4. After the password is chosen, simply click on the Create User button to finish the process
5. Now you have both MySQL Database and MySQL User created. Now we need to assign MySQL User to the database and set proper privileges. To do this, find the Add User To Database section and make sure that you choose the correct Database and User correspondingly. Once done, simply click on the Add button
6. 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.
7. Once finished, you will get the message stating that the MySQL User was successfully added to the Database

Creating database with the MySQL Database Wizard tool

1. To find the tool, log into cPanel and click on the MySQL Database Wizard option under Databases
2. Once done, indicate the name of the new database and click on the Next Step button
3. At Step 2 you will be prompted to indicate MySQL User and choose a password for it, reciprocally to the process described before
4. After the username and password are indicated, simply click on the Create User button
5. The next windows will allow you to set privileges for the newly created MySQL User similarly to the process described previously.
6. Once done, you will get a confirmation that the MySQL User was successfully added to the MySQL Database

And you are Done!.

XsoftHost Support

Share
Tags: cPanelMySQL

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

4 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago