How to Create a MySQL Database in cPanel

This guide shows you how to create a MySQL database from within cPanel. A database is where applications such as WordPress, Joomla, PrestaShop and most content management systems store their content and settings. Creating the database is only the first half of the job: on its own an empty database cannot be used until you also create a database user and grant that user access to it, so this guide covers that essential next step too.

Last reviewed: 27 July 2026, against cPanel & WHM (current stable release). This guide is written for Noiz hosting and is kept current against cPanel. It complements, and does not replace, the official cPanel documentation linked below.

Official Documentation Reference

Prerequisites

  • A Noiz hosting account with cPanel access.
  • Your cPanel username and password, or single sign-on from the Noiz client area.

Create the database

  1. Log in to your cPanel account.
  2. In the Databases section, click MySQL Databases.
    The MySQL Databases icon in the Databases section of cPanel
  3. Under Create New Database, type a name for the database in the New Database field. Read the note on naming below before you decide on a name.
    Entering a new database name in the New Database field in cPanel
  4. Click Create Database. cPanel confirms that the database was added.
    cPanel confirmation message that the database was added successfully

How cPanel names your database

cPanel automatically prefixes the database name with your cPanel username and an underscore. If your username is example and you type shop, the real database name becomes example_shop. Always use this full, prefixed name when you configure an application or a connection string, otherwise the connection fails with an "unknown database" error. Database names are limited in length and may contain only letters, numbers and underscores.

Create a user and grant access

An empty database is not usable until a MySQL user is attached to it. This is the step most people miss. On the same MySQL Databases page:

  1. Scroll to MySQL Users, then Add New User. Enter a username and a strong password, then click Create User. As with databases, the username is prefixed with your cPanel username, for example example_appuser.
  2. Scroll to Add User to Database, select the new user and the new database, then click Add.
  3. On the privileges screen, tick ALL PRIVILEGES for a standard application, then click Make Changes.

You now have four values to give your application: the database name, the database username, that user's password, and the database host, which is localhost on Noiz cPanel hosting.

Faster alternative: the MySQL Database Wizard

If you would rather create the database, its user and the privileges in one guided sequence, open MySQL Database Wizard from the Databases section instead. It walks you through the same three steps across a single set of pages.

Troubleshooting

Application cannot connect, or reports the database does not exist: confirm you used the full prefixed database name (username_dbname), that the user has been added to the database, and that the host is set to localhost.

"Access denied" for the database user: re-open Add User to Database and confirm the user is assigned to the database with the privileges the application needs.

You need to connect from your own computer or an external server: local, same-server connections use localhost. Remote connections must first have your IP address authorised under Remote MySQL in the Databases section, and then connect to the server hostname rather than localhost.

Need a hand?

If you are on a Noiz managed plan, the support team can create databases, users and privileges for you, or check a connection that will not come up. Open a ticket from the Noiz client area and include the application you are connecting and the exact error message.

  • 0 Users Found This Useful
  • cpanel, hosting, database, mysql
Was this answer helpful?

Related Articles

How to Rename a MySQL Database in cPanel

This guide shows you how to rename an existing MySQL database from within cPanel on your Noiz...

How to Delete a Database in cPanel

This guide shows you how to permanently remove a MySQL database from your hosting account using...

How to Create a MySQL Database User in cPanel

This guide shows you how to create a MySQL database user in cPanel on your Noiz hosting account....

How to Add a User to a MySQL Database in cPanel

Creating a MySQL database and creating a database user are two separate steps in cPanel. A new...