Managing MySQL Databases in cPanel
Last Updated: March 2026
2 min read
Managing MySQL Databases in cPanel
MySQL databases are essential for dynamic websites and applications like WordPress, Joomla, and custom web apps. cPanel provides tools to create, manage, and interact with your databases easily.
Creating a New Database
- Log into cPanel.
- Navigate to Databases > MySQL Databases.
- Under Create New Database, enter a name for your database.
- Click Create Database.
Creating a Database User
- On the same MySQL Databases page, scroll to MySQL Users > Add New User.
- Enter a username and password.
- Click Create User.
Assigning a User to a Database
- Scroll to Add User to Database.
- Select the user and the database from the dropdown menus.
- Click Add.
- On the privileges page, select ALL PRIVILEGES (or choose specific permissions as needed).
- Click Make Changes.
Using the MySQL Database Wizard
For a streamlined process, use MySQL Database Wizard (found in the Databases section):
- Step 1: Create a database
- Step 2: Create a user
- Step 3: Assign the user to the database with appropriate privileges
Managing Databases with phpMyAdmin
phpMyAdmin provides a web-based interface for advanced database management:
- In cPanel, go to Databases > phpMyAdmin.
- Select your database from the left sidebar.
- Common tasks:
- Browse — View table contents
- Structure — Modify table columns and indexes
- SQL — Run custom SQL queries
- Export — Download a database backup (
.sqlfile) - Import — Restore a database from a backup file
- Operations — Rename, copy, or optimize tables
Backing Up a Database
- Open phpMyAdmin and select the database.
- Click the Export tab.
- Choose Quick export method and SQL format.
- Click Go to download the backup file.
Restoring a Database
- Open phpMyAdmin and select the target database (create an empty one if needed).
- Click the Import tab.
- Click Choose File and select your
.sqlbackup. - Click Go to restore.
Important Notes
- Database and user names in cPanel are prefixed with your cPanel username (e.g.,
cpuser_dbname). - Keep track of your database names, usernames, and passwords — they are required in your website’s configuration files.
- Back up your databases regularly to prevent data loss.
- Use Optimize Database in phpMyAdmin periodically to improve performance.
Remote MySQL Access
If you need to connect to your database from an external application:
- In cPanel, go to Databases > Remote MySQL.
- Add the IP address of the remote server that needs access.
- Click Add Host.
For database-related assistance, contact 10Corp support.
Tags:
hosting
mysql
database
cpanel
phpmyadmin