Creating a database for your website is easy once you know where to click. Here’s how to set everything up from your cPanel:
Step 1: Create the Database
- Log in to your cPanel and click on theMySQL Databasesmenu in theDatabasessection.

- Enter your desired database name in the field provided and click on the Create Database option.

Your database is now ready. Next, you will create a user to manage it.
Step 2: Create a MySQL User
- Find the section calledMySQL Users and click on Add New User
- Enter a preferred username you wish to assign to your database.
- Create a strong password for the user.
- You may use the Password Generator (this is strongly recommended) to create a secure password
- Make sure to save the generated password securely.

- Click Create User.

Step 3: Assign the User to the Database
- Scroll to the Add User to Database section.
- Select the newly created user and the database.
- Click Add.

Step 4: Set User Privileges
- Once the user has been created, move to the "Add User to Database" section to assign the user to the database, and grant proper privileges.
- Choose the privileges you want to grant the user.

- Click Make Changes to save.
Once completed, you will see a confirmation message stating that the user’s privileges have been successfully saved.