Skip to content
+2 (02) 20824060+2 012 77002700Pay in EGP: Fawry · InstaPay · Cards

How to Create a MySQL Database and Use phpMyAdmin in cPanel

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

  1. Log in to cPanel and open MySQL Database Wizard.
  2. Type a database name and click Next Step.
  3. Create a database user with a strong password.
  4. 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.

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.

Need help choosing?Tell us about your project and we will recommend the right solution.
Contact us