DataGrip/PhpStorm 未连接到 MySQL DB,错误:com.intellij.execution.ExecutionException

问题描述 投票:0回答:3

我使用 PhpStorm 作为我的代码编辑器和数据库客户端。一切正常。但突然它停止工作了。删除连接,然后使用绝对正确的数据库凭据添加新数据源,但仍然没有连接。 然后我以为是PhpStorm的问题,所以我下载了DataGrip,但它也有同样的问题。我能够使用 SequelPro 通过相同的凭据连接相同的数据库。

这是我点击“应用”按钮时得到的结果。当我单击“测试连接”按钮时,它会显示一个无限进程

connecting to database
在后台运行。

enter image description here

我不知道 JetBrains 关于 DB 的产品突然出了什么问题。我不能 100% 确定到底是在哪个活动之后,我遇到了这个问题。我使用的是最新版本的 PhpStorm 和 DataGrip(版本 2017.3.4 构建于 2018 年 1 月 17 日)。

我的idea.log如下:

enter image description here

mysql phpstorm jetbrains-ide datagrip
3个回答
1
投票

问题是

/etc/hosts
文件由于某种原因没有记录
127.0.0.1 localhost

有关更多调查详细信息,请参阅 DataGrip 问题 DBE-5801


0
投票

试试这个:

  1. 在“数据源和驱动程序”窗口中:选择您的数据库连接项。

  2. 点击[Driver:]标签后的[MySQL]链接

  3. 删除[其他文件:]中的所有项目

  4. 完成!


0
投票

enter image description here

Sometimes it is a problem with the Java version. You can try changing the Java version that comes with the editor.

© www.soinside.com 2019 - 2024. All rights reserved.