How to add a MySQL database

If a MySQL database is needed for your scripts to work, then you need to create it through the cPanel website control panel
Follow the instructions below:

1. Go to your Control Panel
2. Click on the link "MySQL Databases", enter the name of the database in the column "Db", click "Add Db".
3. Create a database user: in the "UserName" field, enter the login, in the "Password" - the password, click "Add User".
4. Enable access to the database for the created user: next to the "User" field, select the database to which you want to open access next to the user, click "Add User to Db"

In scripts, specify as the Host to connect to: localhost