title: Why can't I connect to my sql database? I get the error message: "Can't connect to local MySQL server through socket"
body: <p>I just moved my site to a new web host, and after changing the database-login file, it still can't connect. I get the following error:</p>
  
  <p>Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/www/users/simpleof/index.php on line 91</p>
  
  <p>I changed the password and tried again, but it still doesn't work. All the information in the db-login is correct, so why can't I connect to the database?</p>