Can't connect to local MySQL server through socket '/tmp/mysql.sock'

Error
The website encountered an unexpected error. Please try again later.

PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in db_table_exists()*****************************/includes/database/database.inc).

What happened?
If your Drupal website fall across this wrong error, you must check your disk space of your hosting first. Maybe have no space for use now.

A experience on using linode vps of mine.
Check your host, make sure space enough.

分类: