Home >Database >Mysql Tutorial >jdbc-mysql5.7 eight-hour mechanism problem
mysqljdbc database
MySQL database will have a problem with the eight-hour mechanism. Usually by default, the jdbc link will fail if it exceeds eight hours. I encountered a similar problem in version 5.1 and successfully changed the interactive_timeout and wait_timeout parameters in the my.ini configuration file. Solved, but it still fails after the 5.7 version change. I hope you can give me some advice
A retry connection mechanism can be implemented to prevent idle disconnection