mysql数据库报连接超时

The last packet successfully received from the server was 10,069 milliseconds ago. The last packet sent successfully to the server was 10,082 milliseconds ago。

解决办法:
在数据库连接的url后面加上:
autoReconnect=true&socketTimeout=60000&connectTimeout=60000

你可能感兴趣的:(mysql)