Development and databases
Create a database and its user with the cPanel wizard
cPanel's Database Wizard creates an empty database, a user and the assignment of its permissions. It is useful when you are going to install an application manually and need its connection details.
If an automatic installer has already created the database for your website, check its configuration first: creating another one does not move the existing data.
Create the database
- Log in to cPanel from your hosting service.
- Look for Database Wizard (in older versions, MySQL Database Wizard).
- Enter a name that identifies the project and continue.
- Note down the full name cPanel shows, including your account's prefix.
Create the user
Enter a username and generate a unique password. Save both in your password manager: the database password is not the one for the client area or for cPanel.
Use a different user for each application. That way you can change its credentials or permissions without affecting other projects sharing the hosting.
Assign the permissions
In the next step, confirm that the user and the database are the ones you have just created. Select the permissions your application needs and complete the wizard. Some applications need ALL PRIVILEGES on their own database to install or update their schema; that is not the same as administrative privileges on the server.
Creating the user without assigning it to the database is not enough for the application to connect. You can review or change that assignment later from Manage My Databases.
Configure and check the application
Use these details in its configuration:
| Item | Value |
|---|---|
| MySQL server | localhost for an application hosted on the same hosting |
| Database | Full name shown by cPanel |
| User | Full name shown by cPanel |
| Password | The one for the MySQL user you have just created |
The database is still empty. Continue with the application's installer or import an SQL file from phpMyAdmin if you are migrating data.
If Access denied appears, check the full names, the password and the permissions. If the application looks for tables that do not exist, check that the installation or import has finished and that you entered the right database.
You can also see the cPanel wizard reference.
You may also find useful
- Manage MySQL databases, users and permissions in cPanel Manage MySQL databases, users, permissions, repairs and credential changes from cPanel, keeping each...
- Which MySQL variables can be changed on managed hosting Tell MySQL global and session variables apart, learn which settings managed hosting allows and use a...
- Check your MySQL version and compatibility Identify the actual version of the MySQL server your application uses, review compatibility and tell...
- Clone a database Duplicate a MySQL database by first creating the destination and its permissions in cPanel, then cop...
Something wrong or out of date? Tell us and we will review it.