

Create a database
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.

Create a database user
A database without a user that can connect to it is read-only-by-nobody. Every app needs a user.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.

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.
Link the user to the database
Scroll to Add User to Database
Pick the user from the first dropdown and the database from the second.
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.



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.

