SQL_ERROR

SELECT id FROM websiteadmin_votes WHERE note=394976 AND ip='54.163.213.149'
Lost connection to MySQL server during query
SQL_ERROR

INSERT INTO websiteadmin_votes (time,vote,user,note,voter,ip) VALUES ('1561593882','1','mmocs','394976','','54.163.213.149')
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
SQL_ERROR

select * from websiteadmin_notes WHERE user='mmocs' AND active='YES' AND date>= 1559340000 AND date<= 1561932000 ORDER BY id
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)