MYSQL and ADODB db connection error


I copied a website to dreamhost and set up a new DB. When I browse the site I get the following error: Warning: mysql_connect() [function.mysql-connect]: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /home/billkeane/rlenz/adodb/drivers/ on line 364.

I suspect the path is wrong but I am not sure what it should be or where to change it.


You probably haven’t specified your MySQL hostname in your database configuration. Check that.