Solution to navicat automatically disconnecting from the database after a period of time

Solution to navicat automatically disconnecting from the database after a period of time

This is because the database server is set to automatically disconnect the connection after a period of inactivity to avoid too many connections.

Solution:

1. Select a database and right-click to open the connection properties

Select Advanced and set Keepalive Interval (240) -- automatically send heartbeat data every 4 minutes, so that the connection can be maintained.

Supplement: Things to note when Navicat gets stuck when importing SQL script files

Pay attention!

Do not set the max_allowed_packet = 64M parameter in the mysql.ini file too large.

The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me.

You may also be interested in:
  • How to remotely connect to MySQL database with Navicat Premium
  • How to use Navicat to create a database and connect with JDBC
  • How to remotely connect to the cloud server database using Navicat
  • When Navicat Premium connects to the database, the error message appears: 2003 Can't connect to MySQL server on''localhost''(10061)
  • Detailed explanation of the 10061 unknown error when using Navicat to connect to a remote Linux MySQL database
  • Solution to the problem "MySql database does not support remote connection" when connecting to NaviCat
  • How to connect Intellij IDEA to Navicat database

<<:  Style trigger effect of web page input box

>>:  About the difference between js typeof and instanceof in judging data types and their development and use

Recommend

Introduction and tips for using the interactive visualization JS library gojs

Table of contents 1. Introduction to gojs 2. Gojs...

A brief discussion on the role of HTML empty links

Empty link: That is, there is no link with a targ...

MySQL 5.5.56 installation-free version configuration method

The configuration method of MySQL 5.5.56 free ins...

Example analysis of mysql non-primary key self-increment usage

This article uses an example to illustrate the us...

Introduction to the use of em in elastic layout in CSS3: How many pixels is 1em?

I have been using CSS for a long time, but I have...

Implementing a table scrolling carousel effect through CSS animation

An application of CSS animation, with the same co...

Implementation of master-slave replication in docker compose deployment

Table of contents Configuration parsing Service C...

Vue Element-ui table realizes tree structure table

This article shares the specific code of Element-...

Docker container exits after running (how to keep running)

Phenomenon Start the Docker container docker run ...

abbr mark and acronym mark

The <abbr> and <acronym> tags represen...

Web page image optimization tools and usage tips sharing

As a basic element of a web page, images are one ...