开发者社区 问答 正文

不懂什么意思

Connect Error (2002) Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 


什么意思 怎么解决

展开
收起
撒旦撒我 2018-11-19 16:48:16 780 分享 版权
1 条回答
写回答
取消 提交回答
  • 你好!两种法案。
    1、将连接参数“host”的值由“localhost”改成“127.0.0.1”;
    2、按下面方法,在“/etc/mysql.cnf”中指定“sock文件”位置。
    2018-11-19 17:01:17
    赞同 展开评论