报错:

Your connection attempt failed for user ‘root’ from your host to server at 127.0.0.1:3306:Access denied for user ‘root’@'localhost’

MySQL workbench不能连接到服务器

更改

只要将连接设置中的Hostname “127.0.0.1”改成:“::1”

MySQL workbench不能连接到服务器

即可成功连接到数据库。

MySQL workbench不能连接到服务器

官方解释

Note

The server uses the host cache only for nonlocal TCP connections. It does not use the cache for TCP connections established using a loopback interface address (for example, 127.0.0.1 or ::1), or for connections established using a Unix socket file, named pipe, or shared memory.

相关文章:

  • 2022-12-23
  • 2021-05-07
  • 2022-02-05
  • 2021-06-11
  • 2022-01-15
  • 2021-06-28
  • 2021-11-15
  • 2022-01-22
猜你喜欢
  • 2021-04-18
  • 2021-04-12
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2022-02-14
相关资源
相似解决方案