com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 866,595,528 milliseconds ago. The last packet sent successfully to the server was 866,595,528 milliseconds ago. is longer than the ser…
每次设置root和远程访问都容易出现问题, 总结了个通用方法, 关键在于实用 step1: # mysql -u root mysql mysql> Grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option; //增加远程访问权限mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’; //增加ro…