无法仅在workbench上访问(6.3.6 build 517 ce(64位)社区)

mkh04yzy  于 2021-06-15  发布在  Mysql
关注(0)|答案(1)|浏览(370)

我道歉。。我知道这个问题以前被问过很多次,但我试过很多建议,根本找不到解决办法。
问题是,当我尝试在workbench上连接时,会出现以下错误:
“无法使用用户root在127.0.0.1:3306连接到mysql”
但如果我跑了 shell> mysqladmin version ,我得到:

  1. mysqladmin Ver 8.42 Distrib 5.7.19, for Linux on x86_64
  2. Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
  3. Oracle is a registered trademark of Oracle Corporation and/or its
  4. affiliates. Other names may be trademarks of their respective
  5. owners.
  6. Server version 5.7.19
  7. Protocol version 10
  8. Connection Localhost via UNIX socket
  9. UNIX socket /var/run/mysqld/mysqld.sock
  10. Uptime: 32 sec
  11. Threads: 1 Questions: 3 Slow queries: 0 Opens: 107 Flush tables: 1 Open
  12. tables: 26 Queries per second avg: 0.093

以下命令也可以正常运行:

  1. shell> mysqld (service is running)
  2. shell> mysql (login on Server)

wb上的“newconnection”设置为:

  1. Connection Method: Standard (TCP/IP)
  2. Parameters.Hostname: 127.0.0.1 - Port: 3306
  3. Parameters.Username: root
  4. ... (next values are by Default)

我的系统是ubuntu 14.04 lts。
提前谢谢。

t5fffqht

t5fffqht1#

我已经将[user].[plugin]值上的配置从mysql.server更改为mysql\u native\u password(针对该用户),并且可以从wb正常登录。这是工作!
这个答案,解决了我的问题。

相关问题