How to Create a MySQL Database in cPanel
This guide shows you how to create a MySQL database in cPanel. Databases are used by applications like WordPress to store content, settings, and user data.
What is a Database?
A database stores structured data for your website. For example, WordPress uses a database to store posts, pages, users, and settings.
Step-by-Step Instructions
Step 1: Login to cPanel
Access your hosting account and open your cPanel dashboard.
Step 2: Open MySQL Databases
Scroll to the Databases section and click MySQL Databases.
Step 3: Create Database
Enter a name for your database and click Create Database.
Step 4: Create Database User
Scroll down and create a username and password.
Step 5: Assign User to Database
Add the user to the database and grant all privileges.
Important Notes
Save Details
Keep a record of your database name, username, and password.
Use Strong Passwords
Always use secure passwords for database users.
Required for WordPress
WordPress needs a database during installation.
Common Issues & Fixes
Access Denied
Ensure the database user is assigned with full privileges.
Wrong Credentials
Double-check database name, username, and password.
Connection Error
Verify your application’s configuration and confirm the database server is correct (usually localhost).