You can create Mysql database in cpanel and for that you can follow below steps:
Go to hosting control panel (cPanel)
- In MySQL section
- Create-database (ex. username_databaseNAME)
- Create-User with password ( user will be username_User)
- Give that user all the priviledges of data bases.
MySql hostname will be localhost
Connection string ;
mysql_connect("localhost", "Username_USer", "PASSWORD") or die(mysql_error());
mysql_select_db("USername_ DATABASE") or die(mysql_error());
Username is your hosting login userid.