At HostMonster host, create a new empty MySQL database.
1. Log in to cPanel, click on MySQL icon
2. To create users, as short as possible and easy to remember
3. To create the database, please select an easy-to-remember name, the last step is to add new users to a new database, the permissions granted to user management
Achieve the above steps, you can enjoy the use of scripts or procedures to use to create a good database. Such as php, perl script, phpmyadmin or other software. PhpBB such as during the installation process will prompt the user to enter the database information used to connect it.
User name format: the main domain name database user name _
Database name format: the main domain name database _ name
Host: localhost
If you have the following settings:
Hostname: localhost
DBName: enchorg_DB1
DBUser: enchorg_admin
Password: password
Please note that the password does not add the prefix, and maintain the same.
Used to connect the sample:
Perl
$ dbh = DBI-> connect ( "DBI: mysql: enchorg_DB1: localhost", "enchorg_admin", "password"); PHP
$ dbh = mysql_connect ( "localhost", "enchorg_admin", "password") or die ( 'I cannot connect to the database.');
mysql_select_db ( "enchorg_DB1");
If you want more, use phpmyadmin, such as add and so on. You can easily from the cPanel control panel, click the MySQL management phpmyadmin the bottom of the page to see the connection. If you want to know more about phpmyadmin, access http://www.phpmyadmin.net
