Zenphoto encountered an error

MySQL Error: Zenphoto received the error Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46) when connecting to the database server.