Witam. Posiadam VPS i mam zainstalowaną bazę mysql i mam taki oto błąd, wszystko z bazą mysql działa poprawnie ,ale jeżeli na serwer nikt nie dołącza przez dłuższy czas to mam taki błąd:
20:45:25 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 76,569,838 milliseconds ago. The last packet sent successfully to the server was 76,569,851 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.
Jeżeli dołączę na serwer pokaże się ten błąd i wszystko działa. Proszę o pomoc
Pytanie
Dawid_PL 2
Witam. Posiadam VPS i mam zainstalowaną bazę mysql i mam taki oto błąd, wszystko z bazą mysql działa poprawnie ,ale jeżeli na serwer nikt nie dołącza przez dłuższy czas to mam taki błąd:
20:45:25 [SEVERE] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 76,569,838 milliseconds ago. The last packet sent successfully to the server was 76,569,851 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.
Jeżeli dołączę na serwer pokaże się ten błąd i wszystko działa. Proszę o pomoc
Odnośnik do komentarza
https://skript.pl/temat/30563-b%C5%82ad-mysql/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi