Database access problem


#1

hi , i just installed a simple database with no problem but the config file has this problem

$this->link = mysql_connect($hostname, $username, $password);
mysql_select_db($dbname);

i keep getting error on the last line. i think its wrong lol

do you konw what it should be for dreamhost?

sarah


#2

What’s the error message?

Are you using “localhost” as the location? If so, that’s the problem, localhost doesn’t work on Dreamhost. You need to go the the MySQL area and get the databasename.yourdomain.com location and use that instead of localhost.