To connect to the database in a script use:
host: localhost
database: yourCpanelName_databaseName
user: yourCpanelName_databaseUser
password: myDataBasePassword
* Note password is just as the password,
do not add the CpanelName to it.
---------------------------
If the database already exist and you do not know the database user and database password for that user
then create a new user and password
Be sure that in MySql you
- created a user with password
-added the user to the database (go back to MySql and find the Add user
select the user and database, and then Add user to database)