我使用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驱动程序中:
我的数据库连接配置:
我不明白为什么他不能连接......