autoReconnect=true
Kervinou opened this issue · 3 comments
Hi !
I have a test server that is few used
If i connect after a long time, this console ERROR message appears
It seems that it is in source code that there's something to do
what do you think of that ?
thank you
[19:47:38 ERROR]: Error at SQL Query: The last packet successfully received from the server was 56827293 milliseconds ago. The last packet sent successfully to the server was 56827293 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
[19:47:38 ERROR]: Query: SELECT * FROM pstone_players WHERE uuid = '2e148fbf-e82b-40b7-b586-0b96bb8fee38';
Yeah it is a timeout
the option autoReconnect=true seems to be the solution
but where put it ? i read that it is when client access mysql so in our case this is in the source code