Creating and Managing MySQL Databases
Create a MySQL database, add a user, connect from your application, and manage tables with phpMyAdmin. Avoid the common pitfalls.
WordPress, Joomla, and most server-side applications need a MySQL (or MariaDB) database to run. cPanel gives you everything you need to create, back up, and inspect databases without touching the command line.
Create a database
- Open Databases → MySQL® Databases in cPanel.
- Under Create New Database, enter a name (cPanel adds your account prefix automatically).
- Click Create Database.
Create a database user
- On the same page, scroll to MySQL Users and click Add New User.
- Set a username and a strong password.
- Under Add User to Database, attach the user to the database you created and grant All Privileges.
Save the database name, username, and password somewhere secure — you will paste them into your application's configuration.
Connect from your application
Most apps ask for four values:
- Host:
localhost(the database is on the same server as your site). - Database name: e.g.
account_wp - Username and Password as you set them above.
Manage with phpMyAdmin
Open Databases → phpMyAdmin. From there you can browse tables, run SQL, import or export .sql dumps, and repair tables. Always export a backup before making structural changes.
Common pitfalls
- Forgetting the prefix. If your account is
acct, the database isacct_wp, not justwp. - Wrong host. Use
localhost, not your domain name. - Importing a too-large dump. phpMyAdmin caps imports around 50 MB. For larger files, use the cPanel Backup tool or ask support.
For automated nightly backups across all your databases, set up a cron job (see our cron jobs article).
Still need help?
Our support team replies to tickets around the clock.
Related articles
cPanel: A Quick Tour for New Users
A plain-English tour of cPanel: Files, Domains, Email, Databases, Security, Software, Metrics — what each section is actually for.
Web HostingScheduling Cron Jobs and Other Advanced Settings
Set up scheduled tasks (backups, sitemaps, CMS housekeeping) with cron in cPanel. Schedule format, common commands, advanced settings.
Technical TroubleshootingDiagnosing Slow Site Performance
Find the cause of a slow site: images, caching, plugins, database. PageSpeed-grade improvements you can make this week.