Add a MySQL Database in cPanel

Add a MySQL Database in cPanel

A database is an organized collection of data, stored and arranged into rows and columns. MySQL is a Relational Database Management System (RDBMS) open source and it uses Structured Query Language (SQL). SQL is used for adding, accessing and managing content in a database.

The following article explains how to add a MySQL database in cPanel. You can use cPanel's built-in MySQL database interface to add new MySQL databases. This procedure must be performed as the user for the domain, rather than as the administrator. Before you create the database, you must ensure the MySQL service is running.

To Create MySQL Database in Cpanel, please follow the below steps:

Step-1:
Log into Cpanel > click on the MySQL Databases menu in the Databases section.

MySQL
Step-2:
Find the Create New Database option > click on the Create Database button

MySQL


Step-3:

The database is created now.
MySQL User should be created and assigned to the desired database with ALL privileges.

MySQL
To create a MySQL User,
Click on Add New User and choose the username you wish to assign to the database. Once done, It is highly recommended to use the built-in Password Generator to make it secure. Save the password, as you will need it to connect and maintain the database.


Step-4:
Now, simply click on the Create User button to finish the process:

MySQL

Step-5:
Now we have created MySQL Database and MySQL User.
Now we need to assign MySQL User to the database and set privileges.
Find the Add User to Database section and make sure that you choose the correct Database and User.
Once done, simply click on the Add button.


Mysql


Step-6:

Now, set correct privileges to the MySQL User.
Select the appropriate database permissions for the user and click Make Changes button:

MySQL

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


MySQL

We hope that the above article was beneficial for you if you liked it please give us a thumbs up.

Technical Support,
WebSouls.

  • 13 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

..htaccess guidance

  .htaccess guidance .htaccess is a special Apache file that tells your website how to...

Linux Sites preview Offline

Linux Site's Preview Offline   http://IP_address/~UserName OR http://ServerName/~userName...

How to scan your website's data from CPanel?

Welcome the comprehensive step-by-step guide by our web hosting company on how to scan your...

How Can I Download a Backup of Full cPanel Account Using FTP?

If you want to download a backup of your website using FTP, please follow these easy steps below:...

How to create an addon domain?

An add-on domain is a fully functional domain and it can be created by using your Cpanel. Add-on...