×

How to Create a MySQL Database in cPanel?

Creating a MySQL database in cPanel is a simple and necessary process for managing web applications and websites that require data storage in a MySQL database.

Follow the steps below to set up a database in cPanel:

Creating the Database

  1. Log in to your cPanel account with your access credentials.
  2. Access Manage My Databases from the Databases section.
    cPanel Manage My Databases Button
  3. In the Create New Database section, enter a name for the database and confirm by clicking the Create Database button.
    cPanel Create New Database

Creating a User

  1. From the Manage My Databases page, scroll down to the Add New User section.
  2. Enter a username and password for the database account and confirm by clicking the Create User button.
    cPanel Create New User for Database

Adding the User to the Database

  1. From the Manage My Databases page, scroll to the Add User to Database section.
  2. Select the newly created user and database and click Add.
    cPanel Add User to Database
  3. Select individual privileges or select All Privileges.
  4. Confirm by clicking Make Changes.