为什么我不能使用MySQL Workbench连接到我的MySQL数据库?

时间:2018-04-27 23:40:44

标签: mysql mysql-workbench

我无法使用MySQL Workbench连接到我的MySQL数据库。我正在使用 MySQL社区服务器8.0.11 MySQL Workbench 6.3 CE 。我也在使用Windows 10 Home。

当我点击MySQL Workbench中的默认MySQL连接时,它说它遇到了错误。没有提供更多信息。 Screenshot of the error

我可以使用该命令连接到我的MySQL服务器而没有任何问题 mysql -u root -p -h 127.0.0.1 -P 3306

以下是我服务器的状态。

mysql  Ver 8.0.11 for Win64 on x86_64 (MySQL Community Server - GPL)

Connection id:          12
Current database:
Current user:           root@localhost
SSL:                    Cipher in use is DHE-RSA-AES128-GCM-SHA256
Using delimiter:        ;
Server version:         8.0.11 MySQL Community Server - GPL
Protocol version:       10
Connection:             127.0.0.1 via TCP/IP
Server characterset:    utf8mb4
Db     characterset:    utf8mb4
Client characterset:    cp850
Conn.  characterset:    cp850
TCP port:               3306
Uptime:                 15 min 55 sec

Threads: 2  Questions: 6  Slow queries: 0  Opens: 110  Flush tables: 2  Open tables: 86  Queries per second avg: 0.006

2 个答案:

答案 0 :(得分:2)

看起来 MySQL Workbench 在您的计算机上无法正常启动。我从官方网站上找到了this,试试看是否有效,如果没有尝试向开发团队报告错误并等待回复。或者,您可以尝试使用其他工具连接到数据库。

答案 1 :(得分:1)

我使用-log-level = debug3命令执行MySQL Workbench:21:10:22 [ERR][SQL Editor Form]: SqlEditorForm: exception in do_connect method: Exception: Authentication plugin 'caching_sha2_password' cannot be loaded: Não foi possível encontrar o módulo especificado. 21:10:22 [ERR][ GRTDispatcher]: exception in grt execute_task, continuing: Exception: Authentication plugin 'caching_sha2_password' cannot be loaded: Não foi possível encontrar o módulo especificado. 21:10:22 [ERR][ GRTDispatcher]: worker: task 'execute sql queries' has failed with error:.Authentication plugin 'caching_sha2_password' cannot be loaded: Não foi possível encontrar o módulo especificado. 21:10:22 [ERR][SQL Editor Form]: SQL editor could not be connected: Authentication plugin 'caching_sha2_password' cannot be loaded: Não foi possível encontrar o módulo especificado. 21:10:22 [ERR][SQL Editor Form]: Your connection attempt failed for user 'root' from your host to server at 127.0.0.1:3306: Authentication plugin 'caching_sha2_password' cannot be loaded: Não foi possível encontrar o módulo especificado.

在阅读程序生成的日志后,我发现了以下信息:

{{1}}

这个问题Authentication plugin 'caching_sha2_password' cannot be loaded帮助我解决了这个问题。现在我可以连接到我的MySQL服务器了。

相关问题