Home >Database >Mysql Tutorial >jdbc-mysql5.7 eight-hour mechanism problem

jdbc-mysql5.7 eight-hour mechanism problem

WBOY
WBOYOriginal
2016-12-01 00:00:021042browse

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

Reply content:

A retry connection mechanism can be implemented to prevent idle disconnection

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn