简体   繁体   English

dbeaver mysql 连接在 ubuntu 20.04 中被拒绝

[英]dbeaver mysql connection refused in ubuntu 20.04

I am not able to connect to mysql from dbeaver in ubuntu 20.04, I am adding the error screenshot.我无法在 ubuntu 20.04 中从 dbeaver 连接到 mysql,我正在添加错误屏幕截图。

mysql is ruuning on machine on the below ports mysql 在以下端口的机器上运行

mysqld    5846           mysql   22u  IPv4 122911      0t0  TCP 127.0.0.1:33060 (LISTEN)
mysqld    5846           mysql   24u  IPv4 120996      0t0  TCP 127.0.0.1:3306 (LISTEN)

Any help will be greatly appreciated.任何帮助将不胜感激。

when i try connection on port 3306 i get below error当我尝试在端口 3306 上连接时,出现以下错误

在此处输入图像描述

when i try connecting on 33060当我尝试连接 33060 时

在此处输入图像描述

What worked for me:对我有用的是:

CREATE USER 'username'@'%' IDENTIFIED BY 'Password123#@!';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;

I was also facing "ERROR 1819 (HY000): Your password does not satisfy the current policy requirements" running the first query This is because my password policy was set to "MEDIUM".我还面临“错误 1819 (HY000):您的密码不满足当前策略要求”运行第一个查询这是因为我的密码策略设置为“中”。 If you face same you can check using如果你面对同样的情况,你可以检查使用

SHOW VARIABLES LIKE 'validate_password%';

rest of the configuration i am attaching screenshot for it:配置的 rest 我附上截图:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM