at first sorry for my english, i've a important question to resolve. I'm trying to connect to my dreamhost's database but it's returninng the following error:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I've contacted Dreamhost support and they told me that it looks like the error was the result of using a newly created database hostname.
I see that the hostname is now working properly
Now, I have a php class to connect to my database. this is my command to connect:
$data = new MysqlClass('mysql.test.masterweblab.com','user','pass','data_name');
This works on my localhost. Anyone have a solution?