[FireDAC] [Phys] [MySQL] MySQL server has gone away

Source: Internet
Author: User

[FireDAC] [Phys]  [MySQL] MySQL server has gone away

Reason:

MySQL and other databases, which are essentially the socket server.

As a network communication service, there is a mechanism-the regular active kick off the long-inactive socket client connection, timed kicking off the zombie connection, the service side to maintain stability and efficient service.

ORACLE, MYSQL, MSSQL ... Other long-connected socket services have such a mechanism, which is a common practice.

MySQL server has gone away--tell the client that I (MySQL database) has kicked you off.

Workaround:

1) in the MySQL database side settings, this allows the "Manger not pull Cheung" time to set a bit longer.

2) in the database middleware connection pool will exceed the specified time of the connection, automatically reconnect the database.

[FireDAC] [Phys] [MySQL] MySQL server has gone away

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.