cPanel, How to manage MySQL databases on cPanel
How to add a database user to an existing MySQL database
- On your cPanel dashboard in the Databases section click on the "MySQL Databases" link.
- Under the MySQL Users Add New User section fill in the database username and password. Use the Password Generator to create a strong, random password.
- Click Create User
- In the Add User to Database section choose the user you created and the database the user should be able to access. Click Add.
- Choose the appropriate database privileges for the database user and click Make Changes.
How to list and manage current database users
- On your cPanel dashboard in the Databases section click on the "MySQL Databases" link.
- Scroll to the Current Users section.
From here you can see all the database users you have created. You can change passwords, rename the user or delete the user.
How to see the status of existing MySQL Databases
- On your cPanel dashboard in the Databases section click on the "MySQL Databases" link.
- Scroll to the "Current Databases" section.
In the Current Databases section your databases will be listed along with any database users that have access to the database. From this screen you can delete the database user's access, rename the database or delete the database.
How to repair a corrupted MySQL database
- On your cPanel dashboard in the Databases section click on the "MySQL Databases" link.
- Scroll to the Modify Databases section.
- Choose the database you would like to check in the Check Database section and click Check Database.
- Choose the database you would like to repair in the Repair Database section and click Repair Database.
Using phpMyAdmin for database queries, tables creation, import/export, status, configuration
phpMyAdmin is a utility that gives you information about your databases and allows you to create tables, query tables, import/export tables and databases and make configuration changes.
- On your cPanel dashboard in the Databases section click on the phpMyAdmin link.
- You will automatically be logged into phpMyAdmin and a list of your databases will be on the left. Additional server and status information is in the middle and on the right.
- Choose a database on the left and display a list of existing tables by clicking on the plus sign next to the database.
Tabs across the top contain various options for the database you chose such as SQL Queries, table creation, data search, import/export.
More detailed documentation is available at https://docs.phpmyadmin.net/en/latest/. Some details will be different from the documentation because of cPanel customizations.