参照 http://stackoverflow.com/questions/4448467/cant-connect-to-local-mysql-server-through-socket-var-lib-mysql-mysql-sock

Are you connecting to "localhost" or "127.0.0.1" ? I noticed that when you connect to "localhost" the socket connector is used, but when you connect to "127.0.0.1" the TCP/IP connector is used. You could try using "127.0.0.1" if the socket connector is not enabled/working.

把 localhost 换成 127.0.0.1 就好了, 奇怪了。。。

相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2021-12-01
  • 2021-06-11
  • 2021-04-02
相关资源
相似解决方案