Tutorial

Create a MySQL database in cPanel

Guides4 min read7 steps

Where: Client area › My services › Web Hosting › Open cPanel › Databases.

Contents· On the Meridian interface (current)1/4
  1. 01On the Meridian interface (current)
  2. 02On the older interface (Jupiter)
  3. 03The common pitfall
  4. 04If it doesn't work

A MySQL database stores the content of a dynamic site (WordPress, online shop, PHP application). In cPanel, a single wizard creates the database, creates its user and gives that user all privileges on the database. Checked on cPanel 138 (Meridian interface) on 20 October 2026.

On the Meridian interface (current)

  1. Open cPanel

    In “My services”, click “Web Hosting”, then “Manage” for the hosting account in question, and finally “Open cPanel”.

  2. Start the creation wizard

    In the left sidebar, click “Databases”, then “Create Database”. The wizard has three steps: “Add Name”, “Create User” and “Set Privileges”.

    cPanel screenshot: Start the creation wizard
  3. Name the database

    In “Database name”, enter a short name, without spaces or accents, for example shop. cPanel shows your account prefix to the left of the field (for example accountname_): the database will be called accountname_shop. Click “Next: Create User”.

    cPanel screenshot: Name the database
  4. Create the user

    Enter a “Username” (letters, numbers, _ and - only) and a strong “Password”. The username also gets the account prefix (accountname_admin, for example). This wizard creates a separate user for each database. Click “Next: Set Privileges”.

    cPanel screenshot: Create the user
  5. Grant all privileges

    Leave “All Privileges” selected, without opening “Advanced: Choose Individual Privileges”, then click “Create Database”.

    cPanel screenshot: Grant all privileges
  6. Write down the connection details

    The “Database created successfully” screen shows the “Connection details”: “Database”, “Host” and “Port”. For a site hosted on the same account, the host is localhost. Also copy the user's password: cPanel warns “Copy this password now. You will not see it again.”

  7. Import a .sql file if needed

    To bring in an existing database, go back to “Databases”, click “Manage” on the database's row, open the “Advanced” tab, then click “Open phpMyAdmin” (the “Open in new tab” link shows it full page). Select the database on the left, open the Import tab, choose your .sql file and run the import.

On the older interface (Jupiter)

Scroll the table

StepMeridianJupiter
Find the tool“Databases” in the sidebar, then “Create Database”Databases section of the home page: Manage My Databases (MySQL Databases in older versions) or MySQL Database Wizard
Create the database and userOne wizard: “Add Name”, “Create User”, “Set Privileges”Two forms on the same page: New Database, then Add a user; the Wizard chains both
Link the user to the databaseWizard step “Set Privileges”: “All Privileges”Add User To Database, then the ALL PRIVILEGES checkbox and Make Changes
Add another user“Manage” on the database, “Users” tab, “Add User”Same Add User To Database form
Open phpMyAdmin“Manage” on the database, “Advanced” tab, “Open phpMyAdmin”phpMyAdmin icon in the Databases section

The common pitfall

In your site's configuration (wp-config.php for WordPress), enter the full names with the prefix: accountname_shop and accountname_admin, not shop or admin. A missing prefix is the number one cause of database connection errors.

If it doesn't work

  • “Access denied” when connecting: click “Manage” on the database's row, “Users” tab. If the user is missing or marked “Revoked”, click “Edit Privileges” on its row, choose “All Privileges”, then “Save Privileges”.
  • Lost password: cPanel never shows it again. In the database's “Users” tab, click “Add User” to create a new one, update the site's configuration with its credentials, then delete the old user.
  • The name is rejected: a username accepts only letters, numbers, _ and -, and each name has a maximum length, prefix included. Shorten it.
  • The phpMyAdmin import fails on a large file: compress it to .sql.gz or split it, then run the import again.
  • You cannot create a new database: you have reached the number of databases included in your plan; delete an unused one or change plans.

cPanel hosting, ready to use

One-click WordPress and Sitejet, business email and a free SSL certificate: all included in our web hosting plans.

Need help?

Browse our help center and FAQ, or reach our team — callback, WhatsApp or email. Support in French, English and Arabic.

Message us on WhatsAppopens in a new tab