How to Create a MySQL Database and User in cPanel

56 views
Short answer: Launch MySQL Database Wizard in cPanel, create the database name and user credentials, grant 'All Privileges', and record the full prefixed names for your application config.

Step-by-step tutorial on using MySQL Database Wizard, configuring user permissions, and identifying full database prefixes in cPanel.

Quick reference

Tool Location cPanel > Databases > MySQL Database Wizard
Naming Format cpaneluser_dbname & cpaneluser_dbuser
Required Privileges ALL PRIVILEGES

Steps

  1. Launch MySQL Database Wizard: In cPanel, click MySQL Database Wizard under Databases.
  2. Step 1 - Create Database: Enter your database name (e.g. shop). Note that the full name will be cpaneluser_shop. Click Next Step.
  3. Step 2 - Create Database User: Enter a username and generate a strong password with the Password Generator. Click Create User.
  4. Step 3 - Assign Privileges: Check the box for ALL PRIVILEGES and click Next Step. Your database is now ready for use.

Troubleshooting and tips

  • Access Denied Error in Application: Ensure you copy the FULL database name and username including your cPanel prefix (e.g. cpuser_dbname). Omitting the prefix causes connection errors.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket