[英]SSL connection working in MySQL Workbench, but not in DBeaver
This was a bug in an old version of DBeaver that was subsequently fixed.这是旧版本 DBeaver 中的一个错误,后来被修复了。
I am getting an 'access denied' error trying to connect to a Google Cloud SQL MySQL instance with SSL in DBeaver.我在 DBeaver 中尝试使用 SSL 连接到 Google Cloud SQL MySQL 实例时收到“访问被拒绝”错误。
I am able to:我能够:
Any suggestions why this might be?有什么建议为什么会这样吗?
You can add connection with SSL support, at least in latest version for today (5.1).您可以添加与 SSL 支持的连接,至少在今天的最新版本 (5.1) 中。 Create connection as usual, then skip testing and go to next step, then on SSL tab select "Require SSL" and unselect other checkboxes if selected, then test the connection.像往常一样创建连接,然后跳过测试并转到下一步,然后在 SSL 选项卡上选择“需要 SSL”并取消选中其他复选框(如果选中),然后测试连接。
in dbeaver the ssl connection configuration is available but it is not working and it is not implemented, it took me a day to find out that this is because of dbeaver bug.在 dbeaver 中,ssl 连接配置可用,但它不起作用并且没有实现,我花了一天时间才发现这是因为 dbeaver 错误。 If you need to connect through ssl to Postgres, you can use 'DataGrip' instead.如果您需要通过 ssl 连接到 Postgres,您可以改用“DataGrip”。 As mentioned here: https://dbeaver.io/forum/viewtopic.php?f=2&t=1921 'Currently DBeaver doesn't support SSL connections out of the box.如此处所述: https ://dbeaver.io/forum/viewtopic.php?f=2&t=1921 '目前 DBeaver 不支持开箱即用的 SSL 连接。 You could try to configure it manually if you are familiar with Java (instructions are at https://jdbc.postgresql.org/documentati ... lient.html).如果您熟悉 Java,可以尝试手动配置它(说明位于https://jdbc.postgresql.org/documentati ... lient.html)。
Easy SSL support is in TODO and will be added in one of next versions.'简易 SSL 支持在 TODO 中,并将在下一个版本中添加。
Verify if the useSSL property is set to TRUE
in data-sources.json
.验证data-sources.json
中的 useSSL 属性是否设置为TRUE
。 In windows its path is path-to-user/AppData\Roaming\DBeaverData\workspace6\General\.dbeaver\data-sources.json
.在 Windows 中,它的路径是path-to-user/AppData\Roaming\DBeaverData\workspace6\General\.dbeaver\data-sources.json
。
I had a similar issue.我有一个类似的问题。 I am using DBeaver version Version 22.1.0.202206051253
.我正在使用 DBeaver 版本Version 22.1.0.202206051253
。 I noticed even though the driver properties would show useSSL=true
, it was not set.我注意到即使驱动程序属性会显示useSSL=true
,它也没有设置。
As a result, it throws Access denied for user xxxxxx-XXXXX'@'XXX:XX:X:X' (using password: YES)
.结果,它抛出Access denied for user xxxxxx-XXXXX'@'XXX:XX:X:X' (using password: YES)
。
In 'Connection Settings' navigate to 'Driver Properties' check whether the 'useSSL' value is 'true' or 'false'.在“连接设置”中导航至“驱动程序属性”,检查“useSSL”值是“真”还是“假”。 If 'false' make it 'true' and finish.如果'false' 使它'true' 并完成。
If value is 'true' first make it 'false' and again change value to 'true'.如果值为“真”,首先将其设为“假”,然后再次将值更改为“真”。 Then try to connect to databse.然后尝试连接到数据库。 It should be success.它应该是成功的。 Most of time that useSSL value not getting correctly by json file.大多数情况下,json 文件无法正确获取 useSSL 值。 Hence this will update it again.因此,这将再次更新它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.