简体   繁体   English

SSL 连接在 MySQL Workbench 中工作,但在 DBeaver 中不工作

[英]SSL connection working in MySQL Workbench, but not in DBeaver

EDIT for present day readers为当今读者编辑

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:我能够:

  • connect to the server with the same SSL credentials in MySQL Workbench在 MySQL Workbench 中使用相同的 SSL 凭据连接到服务器
  • connect without SSL credentials (through user name / password) in DBeaver.在 DBeaver 中无需 SSL 凭据(通过用户名/密码)即可连接。

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)

I get to do access database in DBeaver updating only useSSL = true in Driver Properties.我要在 DBeaver 中访问数据库,仅更新驱动程序属性中的 useSSL = true。 See the picture:看图片:

DBeaver - 驱动程序属性

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.

相关问题 AWS MYSQL RDS 连接超过 SSL - AWS MYSQL RDS connection over SSL MySQL 工作台错误:丢失与 MySQL 服务器的连接; 终端错误:错误:13(权限被拒绝) - MySQL Workbench error: Lost connection to MySQL server; Terminal error: Error: 13 (Permission denied) 尝试通过 mysql CLI 连接到 mysql Aurora 时出现 SSL 连接错误 - SSL connection error when trying to connect to mysql Aurora via the mysql CLI 插件“mysql_clear_password”需要 SSL 连接。 检查是否启用了“sslMode” - SSL connection required for plugin "mysql_clear_password". Check if 'sslMode' is enabled MySQL workbench 表数据导出极慢 - MySQL workbench table data export extremely slow 将 Workbench 连接到安装在 Windows AWS 上的 MySQL - Connect Workbench to MySQL installed on Windows AWS 使用 ssh 和 JDBC 从 DBeaver 连接到 Redshift 仅适用于 Mac - Connecting to Redshift from DBeaver using ssh and JDBC only working from Mac AWS AMQP + SSL 与顶点的连接 - AWS AMQP + SSL Connection with vertx SSL / HTTPS 与低级别 Rest API 的连接? - SSL / HTTPS Connection with Low Level Rest API? 如何在 MySQL Workbench 中使用 REGEXP_SUBSTR 或 REGEXP_EXTRACT 以及托管在 Google Cloud SQL 上的数据库? - How to use REGEXP_SUBSTR or REGEXP_EXTRACT in MySQL Workbench with database hosted on Google Cloud SQL?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM