To setup a database:
- Login into your cPanel
.
- Click on "MySQL
Databases".
- Click on the Add Db button.
You need to create at least one database user and grant that user permission to use the new database.
You need to create a MySQL user before that user is able to use the database. This does not automatically allow the user to use a database – you need to grant that user permission to the specific database first.
To create a MySQL user:
- Click on the MySQL databases button on the home page.
- Enter the user’s name in the UserName field and the user’s password in the Password field.
- Click on the Add User button.
Once you have created a user to use a database you need to grant that user permission to use the database.
To grant user permissions to a MySQL database:
- Click on the MySQL databases button on the home page.
- Choose the specific user from the User drop-down list and the specific database to grant permissions to from the Db drop-down list.
- Click on the Add User to Db button. The user now has permission to use that database and sample connection strings are shown in the MySQL window.