This step is needed for OpenCart to connect and store all the data in a MySQL database. We will learn how to create a new database and user for this database. We will later use this information in OpenCart Installation wizard.
We will use MySQL Databases link on cPanel. Even though there can be slight differences on different cPanel versions, the main idea and the process is the same.
If we are on a share hosting, a prefix will be added automatically to the name we provided. This is generally the username which we use to log in to the cPanel. So, your database name will follow the template of cPanelLogin_databasename
.
Take a note of the database name including the prefix.
Choose a username and password. Repeat the password on the last text box and be sure that the password is not very easy to guess for security preferably a mixture of letters and numbers.) We have chosen dbuser as the username. Click on the Create User button after filling all the required textboxes.
Please note that a prefix will be added to the user as well. Take a note of the username.
Providing all MySQL privileges to a user can be dangerous on a production site. Optionally, you can remove unnecessary permissions such as create, drop, and alter tables after installation is complete. Also note that some plugins which we can later install can require create, and alter permissions.
Depending on our knowledge and experience on MySQL permissions, we are free to choose an advanced or simplified privileges management.
The following screenshot shows the result page after clicking the Make Changes button:
We have seen how to prepare a database for OpenCart. The steps include:
Now we are ready to continue our installation by using OpenCart Installation Wizard.
3.141.47.25