How to Create and Maintain Databases in cPanel
Lalith
Last Update a year ago
How to Create and Maintain MySQL Databases in cPanel?
MySQL is a popular relational database management system used by many websites and applications. cPanel provides easy-to-use tools for creating and maintaining MySQL databases. In this article, we will walk you through the process of creating a MySQL database and user, as well as assigning privileges in cPanel.
Creating MySQL Database
- Log in to your cPanel account.
- Find the Databases section and click on the Databases Wizard menu.

Creating a MySQL Database
- In the Databases Wizard menu, find the "Create New Database" section.
- Enter a name for your database in the provided field.
- Click the "Next Step" button to create the database.

Creating a MySQL User
- On the Same Page after Entering the Database Name, you find the "SQL User" section.
- Create a new Database user.
- Choose a username for your Database user.
- Generate a secure password using the built-in Password Generator or set your own strong password.
- Click the "Create User" button to create the "Database User"

Assigning the SQL User to the Database
- In the Databases menu, find the "Add User To Database" section.
- Select the appropriate database and user from the dropdown menus.
- Click the "Add" button to assign the MySQL user to the database.


Confirmation and Verification
- Once the privileges are set, you will receive a confirmation message stating that the MySQL user was successfully added to the database.
- Creating and maintaining MySQL databases in cPanel is a straightforward process. By following the steps outlined in this article, you can easily create a MySQL database, assign a user to it, and set appropriate privileges. These tools provided by cPanel enable efficient management of your MySQL databases, empowering you to handle your website's data effectively.