Zenphoto encountered an error

MySQL Error: Zenphoto could not connect to the database server. (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2))