UPDATE `users` SET `logout_date`='2017-09-25 15:06:59' WHERE UNIX_TIMESTAMP(DATE_SUB('2017-09-25 15:06:59', INTERVAL 1440 SECOND)) > UNIX_TIMESTAMP(last_request_time) AND (`logout_date` ='0000-00-00 00:00:00')Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)