title: Can't connect to Dreamhost's database
body: <p>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:</p>
  
  <pre><code>Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
  </code></pre>
  
  <p>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.</p>
  
  <p>I see that the hostname is now working properly</p>
  
  <p>Now, I have a php class to connect to my database.
  this is my command to connect:</p>
  
  <pre><code>$data = new MysqlClass('mysql.test.masterweblab.com','user','pass','data_name');
  </code></pre>
  
  <p>This works on my localhost. Anyone have a solution?</p>