PhpStorm MySQL连接超时

时间:2017-02-08 20:33:12

标签: mysql phpstorm

我使用PhpStorm 2016.3.2,我想连接我的MySQL数据库。

但是,当我想连接时,我有一个超时异常。

我检查了连接hots / port:

mysql> SHOW GLOBAL VARIABLES LIKE 'PORT';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port          | 3306  |
+---------------+-------+
1 row in set (0,00 sec)

mysql> show processlist;
+-----+------+-----------+------+---------+------+----------+------------------+
| Id  | User | Host      | db   | Command | Time | State    | Info             |
+-----+------+-----------+------+---------+------+----------+------------------+
| 287 | root | localhost | NULL | Query   |    0 | starting | show processlist |
+-----+------+-----------+------+---------+------+----------+------------------+
1 row in set (0,00 sec)

mysql> 

我已下载jdbc connector / j here并复制/通过mysql-connector-java-5.1.40-bin.jar中的/Library/Java/Extensions文件。我已将此文件添加到我的PhpStorm MySQL驱动程序中:

enter image description here

我的数据库连接配置:

enter image description here

我不明白为什么他不能连接......

0 个答案:

没有答案