zoukankan      html  css  js  c++  java
  • ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

     原因是/var/lib/mysql 的访问权限问题。


    shell> chown -R mysql:mysql /var/lib/mysql

    接着启动服务器

    shell> /etc/init.d/mysql start

    服务器正常启动后察看 /var/lib/mysql 自动生成mysql.sock文件。
  • 相关阅读:
    Go
    Go
    Go
    Go
    Go
    Go
    爬虫常用相关库
    Go
    python基础第7天(day19)
    python基础第五天(day17)元组,集合,字符串操作 字符编码:
  • 原文地址:https://www.cnblogs.com/zongzhankui/p/5875339.html
Copyright © 2011-2022 走看看