无法从linux上的mysql workbench连接到mysql

bq9c1y66  于 2021-06-17  发布在  Mysql
关注(0)|答案(0)|浏览(229)

更新

似乎问题与读取密码有关。我尝试了一些东西,但这不是一个完全安全的方式,也许有人可以解释如何让密码工作。
我打开了 connections.xml 位于下面 $USER/.mysql/workbench 刚把我的密码添加到最初为空的配置中。

<value type="string" key="password">MYPASSWORD</value>

现在工作台连接很好,但我不喜欢这个解决方案。我不知道为什么workbench不向我要密码。另外,尝试将密码从gui保存到“store in keychain…”选项也不起作用,并导致以下错误:

原始问题

在ubuntu18.04上更新到mysql 8.0.13后,我可以从终端连接到mysql,但是工作台无法连接。

$ mysql -u root -p -h 0.0.0.0 -P 3306
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 23
Server version: 8.0.13 MySQL Community Server - GPL

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

当我尝试以root用户身份连接到mysql工作台时,出现了以下错误对话框。

以下是我对根用户的连接设置:

我使用apt存储库安装了版本8.0.13,主要网站提供了以下说明:https://dev.mysql.com/downloads/repo/apt/
这里的步骤是:https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题