Most dynamic websites, including WordPress, store their content in a MySQL database. If you install WordPress with the one-click installer, cPanel creates the database for you. You only need these steps when you set up an app by hand or move a site.
Create a database and a user
- Log in to cPanel and open MySQL Database Wizard.
- Type a database name and click Next Step.
- Create a database user with a strong password.
- Tick All Privileges and finish.
cPanel adds your account name before the database and user names, for example account_wpdb. Use the full names in your settings. Write down the three values: database name, username and password.
Connect it to your site
For WordPress, open wp-config.php and set DB_NAME, DB_USER and DB_PASSWORD to those values. DB_HOST is normally localhost.
Use phpMyAdmin
Open phpMyAdmin from cPanel and select your database on the left.
- Export: choose Export, then Go, to download a .sql backup.
- Import: choose Import, select the .sql file, then Go. For a very large file, compress it as .zip or .gz first, or contact us.
- Browse and edit: open a table to look at rows. Be careful, because edits here change your live site.
Always take a backup before changing anything. See how to back up and restore your website.
How many databases do I get?
It depends on your plan. Our smaller plans include 10 databases and the larger plans are unlimited. See the full comparison on the cPanel hosting page.

