![android mysql jdbc android mysql jdbc](https://www.slothparadise.com/wp-content/uploads/2015/08/jdbc.png)
Jdbc.url=jdbc:mysql://ipaddress:3306/database?autoReconnect=true&autoReconnectForPools=true 如果不用hibernate的话, 则在 connection url中加参数: autoReconnect=true Or using the Connector/J connection property ‘autoReconnect=true’ to avoid this problem.
![android mysql jdbc android mysql jdbc](https://s1.o7planning.com/en/10433/images/1285363.png)
You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, Which is longer than the server configured value of ‘wait_timeout’. The last packet successfully received from the server was58129 seconds ago.The last packet sent successfully to the server was 58129 seconds ago,