Skip to content

Create a MySQL database

Set up a database and user for your website or application.

1 min read Updated

Most installers (such as the WordPress installer) create the database for you. Follow these steps if you’re installing an application manually.

  1. Log in to cPanel and open Manage My Databases (or MySQL® Databases) under Databases.
  2. Under Create New Database, enter a name and click Create Database.
  3. Under Add New User, enter a username and a strong password, and click Create User.
  4. Under Add User To Database, choose the user and the database, and click Add.
  5. Tick ALL PRIVILEGES and click Make Changes.

Connection details for your application

Setting Value
Host localhost
Database name The full name shown in cPanel, including the prefix (e.g. cpuser_shop)
Username The full username, including the prefix (e.g. cpuser_shopuser)
Password The password you set

Was this article helpful?