Creating and Managing MySQL Databases
Create databases, add users, and manage them from cPanel - everything your app needs to store data.
Most web applications - WordPress, Laravel, Drupal, custom PHP apps - need a MySQL database. All GoZen shared hosting and WordPress hosting plans include MySQL databases. cPanel lets you create and manage them without touching the command line.
Creating a Database
- Log into cPanel
- Go to Databases → MySQL Databases
- Under Create New Database, enter a name
- Click Create Database
cPanel prefixes all database names with your account username. So if your username is gozen and you name the database wp, the actual database name is gozen_wp.
Creating a Database User
A database on its own is useless - you need a user with a password to connect to it.
- On the same MySQL Databases page, scroll to MySQL Users
- Enter a username and generate a strong password
- Click Create User
The username is also prefixed. gozen + admin = gozen_admin.
Assigning a User to a Database
- Scroll to Add User To Database
- Select the user and the database from the dropdowns
- Click Add
- On the privileges screen, check ALL PRIVILEGES (or select specific ones if you want tighter control)
- Click Make Changes
Your application config needs three things from this process:
Database name: gozen_wp
Database user: gozen_admin
Database host: localhost
Database password: (the password you set)
Using phpMyAdmin
phpMyAdmin gives you a visual interface for running queries, browsing tables, importing/exporting data, and managing structure.
- Go to Databases → phpMyAdmin
- Select your database from the left sidebar
- You’re in - browse tables, run SQL, import/export
Importing a Database
- Select the target database in phpMyAdmin
- Click the Import tab
- Click Choose File and select your
.sqlfile - Leave the defaults (SQL format, UTF-8 encoding)
- Click Go
Size limit: phpMyAdmin imports are limited by the PHP upload size (usually 50–256 MB on GoZen Host shared plans). For larger imports, use SSH:
mysql -u gozen_admin -p gozen_wp < database.sql
Exporting a Database
- Select your database
- Click Export
- Choose Quick for a simple dump or Custom for more control
- Format: SQL
- Click Go - the
.sqlfile downloads to your computer
Do this before making major site changes. A database export + a file backup = a full restore point.
Remote Database Access
By default, MySQL only accepts connections from localhost. If you need to connect from an external tool (like MySQL Workbench or TablePlus on your local machine):
- Go to Databases → Remote MySQL
- Add your IP address (or
%for any IP - not recommended for production) - Click Add Host
Then connect using:
| Setting | Value |
|---|---|
| Host | Your server’s IP or domain |
| Port | 3306 |
| Username | Your cPanel database username |
| Password | The database user password |
| Database | Your database name |
Remove remote access entries when you’re done. Leaving MySQL open to the internet is a security risk.
Database Size and Limits
Shared hosting plans have overall disk quotas that include your databases. There’s no separate database size limit - it all counts against your plan’s storage.
To check current database sizes:
- Go to Databases → MySQL Databases
- Scroll to Current Databases - the size is listed next to each one
If a database is growing fast, check for bloated log tables (common in WordPress with plugins like WooCommerce or activity logs).
Troubleshooting
| Problem | Fix |
|---|---|
| “Access denied for user” | Check that the user is assigned to the database and the password is correct |
| “Unknown database” | Verify the database name includes the cPanel prefix |
| Import fails | File too large - use SSH import instead |
| Can’t connect remotely | Add your IP to Remote MySQL |
| Database encoding issues | Export with UTF-8 and import with the same encoding |
What to Do Next
- Managing Files with cPanel File Manager - upload your application files
- Backups and Restores - make sure your database is included in backups
Last updated 05 Apr 2026, 00:00 +0200.