我可以通过MySQL Workbench和VStudio(Valentina Studio)或phpMyAdmin连接到数据库,但是我遇到了DBeaver和DataGrip的问题 - 可能Java程序使用了一些不同的设置?
例如,在DataGrip中,我在连接到mysql数据库时遇到此错误:
Connection to @example.test failed: SSH: java.lang.IllegalArgumentException: port out of range:-1.
SSH: java.lang.IllegalArgumentException: port out of range:-1
知道它可能是什么以及如何解决它 - 也许调整一些设置?
我在Linux 64位上运行DataGrip-2017.1.2
。
我在我的本地机器上使用Vagrant服务器,所以,可能有一些Vagrant设置应该受到指责?但Workbench,Valentina Studio和phpMyAdmin连接数据库没有问题。
答案 0 :(得分:0)
端口为空时会发生此错误。请尝试填写SSH服务器的端口。通常是22
。