mysql连接问题,求大神
我的项目配置大概都没有问题。这个项目放到其它电脑上能正常启动。但是放我自己电脑上启动不了,数据库用的是阿里云的,而且这个数据库我可以用mysql连接工具直接连接,如果把数据库换成本地的项目就能正常启动。
报错信息也没有什么有用的东西,要么就是连接超时,要么就是连接池不够这些。但是其它电脑上正常启动一点影响都没有
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Caused by: java.net.ConnectException: Connection timed out: connect
有没有大神知道这是为什么啊