HostMonster create MySQL database, as follows:
1, log HostMonster Host Control Panel, click the MySQL icon
2, create users, databases, created good, click "Add User to DB button", if you do not click this button, it should not work.
Created after the completion of PHPMyAdmin or you can use PHP scripts or PERL scripts new database, create the following format:
Username: webusername_dbusername
Database: webusername_dbname
Host Address: localhost
The use of PHP or PERL database link, the script is as follows:
PHP:
$ dbh = mysql_connect ( "localhost", "johndoe_admin", "password") or die ( 'I cannot connect to the database.');
mysql_select_db ( "johndoe_DB1");
PERL:
$ dbh = DBI-> connect ( "DBI: mysql: johndoe_DB1: localhost", "johndoe_admin", "password");
Create table and other functions, you can use the PHPMyAdmin panel Cpanel link to the new on the OK
