Skip to content
Happy New Year 2027 from ZenexCloud
ZenexCloud
Hosting

How do I create a MySQL database and user in cPanel?

Create a database, a user and connect them, then manage data with phpMyAdmin.

  1. In cPanel, open Manage My Databases (or MySQL Databases).
  2. Under Create New Database, type a name and click Create Database.
  3. Under MySQL Users, add a new user with a strong password.
  4. Under Add User To Database, pick the user and the database. Click Add.
  5. Tick All Privileges and save.

cPanel adds your account name as a prefix, such as account_dbname and account_user. Use the full names in your app.

Use it in your app

  • Host: localhost
  • Database, user and password: as you created them.

For WordPress, these values go into wp-config.php. See "How do I install WordPress with Softaculous?".

phpMyAdmin

  1. Open phpMyAdmin in cPanel.
  2. Choose your database on the left.
  3. Use Import to load a .sql file, or Export to download one.
  4. For large files, compress them or ask support for help.

Tips

  • Give each site its own database and user.
  • Export a copy before big changes.
  • Delete unused databases.

If you get "Error establishing a database connection", see "How do I fix WordPress problems?" or check the credentials.

Still need help?

Ask Zeni in the chat bubble, or open a support ticket. We answer 24/7.