Step 1: Log in to cPanel
Access your cPanel by going to
http://yourdomain.com/cpanel
(replace with your actual domain). You can also login to cPanel from Members Arear ->Enter your username and password
Step 2: Find the MySQL Databases Section
In the cPanel dashboard, look for the "Databases" section
Click on "MySQL Databases"
Step 3: Create a New Database
In the "Create New Database" section:
Enter a name for your database (usually prefixed with your cPanel username)
Click "Create Database"
Step 4: Create a Database User
Scroll down to "MySQL Users" section
Enter a username and password (make it strong!)
Click "Create User"
Step 5: Add User to Database
In the "Add User to Database" section:
Select the user you just created from the dropdown
Select the database you created
Click "Add"
Step 6: Set User Privileges
On the next screen, check all privileges or select specific ones needed
Click "Make Changes" to save the permissions
Step 7: Note Your Connection Details
You'll need these details to connect to your database:
Database name:
cpanelusername_dbname
Username:
cpanelusername_dbuser
Password: [the one you set]
Hostname:
localhost
Alternative Method (Using Database Wizard)
cPanel also offers a simpler wizard:
In cPanel, go to "MySQL Database Wizard"
Follow the step-by-step instructions to:
Create a database
Create a user
Assign privileges
Connect them together