Follow our tutorial for step-by-step guidelines on how to open a new database and database user in cPanel. You can do this through your Control Panel (cPanel) Dashboard, using the MySQL Database Wizard tool.
What is MySQL?
MySQL is a very popular open-source relational database management software program that is recommended for use with WordPress.
All your WordPress users, posts, pages, settings, e.t.c., are stored in your MySQL database. Thus, one of the first steps running a WordPress site is to create a new Database and Database User in Cpanel.
Steps to create a new database and database user in cPanel
Login to your hosting cPanel with the login credentials that have been given to you by your hosting company.
Select a password for the new database user – make this as secure as possible and keep a safe record of this information for later. Click on the “Create User” button.
Click on the “Next Step” button. This assigns all privileges to the new database user that you have just created.
Now you need to edit the WordPress Config file. Open the file called wp-config-sample.php using a text editor.
You need to provide the following information. Be sure to include all of the prefixes as assigned by cPanel:
- MySQL settings, which you can obtain from your web host
- The name of the new WordPress database
- The MySQL database username
- The MySQL database password
- The DB_Host, which is almost always localhost for cPanel hosts.
Save the completed information file as as wp-config.php. That’s it – the new database and user have now been created, assigned the correct level of privileges and saved.