

MySQL Databases page with the four sections: Create, Modify, Users, Add User to Database
Create a database
1
Type a name and click Create
The page opens with Create New Database at the top. Type a short name (

wordpress, shop, staging). cPanel automatically prefixes it with your account username, so what gets created is username_wordpress.

2
Confirm
A green confirmation appears and the database shows up in Current Databases further down the page. It’s empty. No tables yet. Use phpMyAdmin or your app’s installer to populate it.
Create a database user
A database without a user that can connect to it is read-only-by-nobody. Every app needs a user.1
Scroll to MySQL Users → Add New User
Type a username (gets prefixed: 

username_wpuser) and a password. The Password Generator button creates a strong random one. Click Use Password to copy it back into the form.

2
Save the password somewhere safe
cPanel won’t show the password again. Paste it into your password manager or your app’s config file before you leave the page.
3
Click Create User
The user is created but isn’t linked to any database yet. Next step does that.
Link the user to the database
1
Scroll to Add User to Database
Pick the user from the first dropdown and the database from the second.
2
Pick privileges
The next page lists every MySQL privilege as a checkbox. For most web apps, click ALL PRIVILEGES at the top and you’re done.



3
Click Make Changes
The user now has the right access to the database. You can plug the credentials into your app.
Modify an existing database
In Modify Databases, click into a database name to:- Check Database: runs
CHECK TABLEon every table. Fast, read-only, finds corruption. - Repair Database: runs
REPAIR TABLEon tables that need it. Only works on MyISAM/Aria. InnoDB tables are repaired by the engine itself; this button is a no-op for them. - Rename Database: changes the name. Watch out, any app config pointing at the old name will break the second you rename.
Modify users
In Current Users, the action column lets you:- Change Password: resets the password. Update your app config with the new one.
- Rename: changes the username. Your app’s config needs the new name.
- Delete: removes the user. The database isn’t deleted, only the user that was connecting to it.
Common issues
The database name field rejects my input
The database name field rejects my input
The full prefixed name (
username_yourname) has a 64-character limit. If you have a long account username, you only have a few characters left for the database name. Use a short suffix like wp or db1.My app says 'Access denied for user'
My app says 'Access denied for user'
Three things to check, in order: the user exists in Current Users; the user is linked to the database (
Privileged Users column on the database row should show the user); and the password you typed into the app config matches what you set when creating the user. The “I forget the password” tell is the user existing but not being on the database.I deleted the wrong database
I deleted the wrong database
Restore it from your nightly JetBackup snapshot. Go to Database Backups, find the database name, click Restore.
Next
Run SQL against the database
phpMyAdmin’s SQL tab is where you’d run queries.
Connect from your laptop
Whitelist your IP for external MySQL connections.
Need a hand?
Open a ticket
Best for anything that needs an account check or a config change on our end.
Live chat
Faster for quick questions during business hours.

