PDA

View Full Version : sql connection string config?



rob1
07-18-2008, 06:56 AM
ive setup a website offline and it works fine. ive created the DB and user online within CP and loaded in the DB content using phpadmin.

However, I do not know what the connection string is to connect to the database, at present i have

$connect=mysql_connect("localhost:3306","xxxxxusernamexxxxx","xxxpasswordxxxx") or die ("db connection lost");
mysql_select_db("xxxxmydatabasexxxx");

username, password and DB names have been changed for obvious reasons

rob1
07-18-2008, 07:31 AM
managed to figure out the problem, needed to prefix domain name and username to what i had.

its always the simple problems that take longer to fix!