How to Create a MySQL Database in cPanel
Dynamic sites and applications need a database plus a database user with privileges. The MySQL Database Wizard creates all three in one pass.
Step-by-step
- Open Databases → MySQL Database Wizard in cPanel.
- Name the database (e.g. shopdb). cPanel prefixes it with your account name: youruser_shopdb. Click Next Step.
- Create the database user. Pick a username (also prefixed) and generate a strong password — note all three values down. Next Step.
- Grant privileges. Tick ALL PRIVILEGES for a normal website user → Next Step. Done.
- Use the values in your application config: database host = localhost, database name = youruser_shopdb, username = youruser_dbuser, password = the one you saved.
- Manage later under Databases → Manage My Databases — add users, change privileges, rename or delete.
💡 Good to know
- The prefix (youruser_) is part of the real name — your application config must include it.
- One database per application keeps backups and cleanups simple.
- Browse and edit the data anytime with phpMyAdmin.