mysql错误一览

  1. Table './hgkp/php_member' is marked as crashed and should be repaired
    解决:myisamchk -c -r /usr/local/mysql/var/hgkp/php_member.MYI
  2. Too many connections
    解决:连接数太多,修改mysql配置文件连接数,(my.cnf or my.ini)
  3. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
    解决
    执行以下命令
> ln -s /tmp/mysql-generic-5.5.sock /tmp/mysql.sock

参考:https://segmentfault.com/q/1010000000094608

你可能感兴趣的:(mysql错误一览)