MySQL server is offline

Avatar
  • Answered
MySQL server is offline therefore I can't access my wordpress sites?

Error while connecting to MySQL: (XID tgbq6) Database Connect Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Error while connecting to MySQL: (XID tgbq6n) Database Connect Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 173.


Avatar
IMH Support Agent 5
Hello, Thank you for your question about the MySQL service being offline. This certainly will cause a WordPress site to go offline because connection to the database is necessary for WordPress. Were there any changes made recently to the site configuration? Any plugins installed? I recommend starting with our guide on common WordPress troubleshooting techniques. That will help isolate where the disconnect might be coming. You could also check with our Live Support to see if SQL service may need to be restarted on your server (if you are in a private server). Best, Christopher M.