启动项目时,Mysql的连接问题

 1.com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

分析原因:在服务器内部,mysql连接,是用127.0.0.1连接。如果在自己电脑上连服务器的mysql,需要用外网连接。

2.

猜你喜欢

转载自www.cnblogs.com/holyshengjie/p/10984223.html