PDA

View Full Version : what does this mean, need help with databases


Ambitious One
05-19-2007, 06:04 PM
Hey guys, I just go blue hosting today, so I am really unfamilar with how things work.

I'm attempting to set up a phpbb2 forum board, so i need to find out what my host is, i dont know what its supposed to be.

I set up my ftp account and all that, and i tried to set up a host of the mysql database.

now i dont know if it worked or not, but i just wanted to know what this means for starters.

Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:fpssourc_forum:localhost","fpssourc_XXXX","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "fpssourc_XXXX", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("fpssourc_XXXX");

Thanks for the help

Basil
05-19-2007, 07:31 PM
The host is localhost, I wrote out the entire process here.. http://bluehostforum.com/showthread.php?t=7800

charlesgan
05-19-2007, 10:10 PM
Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:fpssourc_forum:localhost","fpssourc_XXXX","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "fpssourc_XXXX", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("fpssourc_XXXX");

Thanks for the help

these are the sample script on how to connect to your newly created database. basically i show you to which machine to connect to, here is localhost. meaning this machine.

and the username and password example. replace this with your own username and password for the database.

Ambitious One
05-20-2007, 02:12 AM
Thanks for helping with the tutorial, I figured out how I had to set up the database name and such.

Thanks