HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


How to create and maintain MySQL Databases in cPanel

  • Category : MySQL Question
  • Posted on : Jan 18, 2021
  • Views : 857
  • By : HostSEO
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.
 
 
MySQL Databases menu can be quickly accessed via cPanel Shortcuts in the Namecheap account.


For cPanel Basic Theme


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:



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

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:



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

 
 


For cPanel Retro Theme

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:



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

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:



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

 

Creating a database with the MySQL Database Wizard tool


MySQL Database Wizard brings the same step-by-step process which is described above, but in a more simplified way. Letâ$™s check how it works:

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.

Accordingly, you will need to choose the All Privileges option and click on the Next Step button after that:



6. Once done, you will get a confirmation that the MySQL User was successfully added to the MySQL Database:




That's it!

              
                      Need any help? Contact our HelpDesk

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

SatSunMonTueWedThuFri
 123456
78910111213
14151617181920
21222324252627
28293031 

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional