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

MySQL Optimization: Cache Optimization

I am happy that some bloggers marked my article. ...

Detailed explanation of Mysql function call optimization

Table of contents Function call optimization Func...

How to use HTML form with multiple examples

Nine simple examples analyze the use of HTML form...

CSS Viewport Units for Fast Layout

CSS Viewport units have been around for the past ...

The simplest form implementation of Flexbox layout

Flexible layout (Flexbox) is becoming increasingl...

Solution to ERROR 1054 (42S22) when changing password in MySQL 5.7

I have newly installed MySQL 5.7. When I log in, ...

Solve the problem after adding --subnet to Docker network Create

After adding –subnet to Docker network Create, us...

How to Dockerize a Python Django Application

Docker is an open source project that provides an...

How to find out uncommitted transaction information in MySQL

A while ago, I wrote a blog post titled "Can...

How to find websites with SQL injection (must read)

Method 1: Use Google advanced search, for example...

MySQL 8.0.13 installation and configuration method graphic tutorial

This article shares the installation and configur...

Detailed process of compiling and installing Storm on Kylin V10 server

1 Introduction Apache Storm is a free, open sourc...

Solution to forgetting mysql database password

You may have set a MySQL password just now, but f...