This happens when you use an unbuffered connection to the mysql database, and after executing your query, you are not using the data. client python connects to non-buffering SSDictCursor
connection = pymysql.connect(host='localhost', user='xxxx', password='xxxx', db='employees', charset='utf8mb4', cursorclass=pymysql.cursors.SSDictCursor) sql = " select * from employees" cursor = connection.cursor() cursor.execute(sql) cursor.fetchone()
do nothing, and your connection will be disconnected or if you do not extract all the data within 60 seconds (net_write_timeout), your connection will be disconnected.
quote from the document: When the server writes to the client, net_write_timeout is a timeout value that determines when to abort
2019-08-14T15: 20: 26.465498Z 28440 Request for selection * from employees
2019-08-14T15: 21: 26.584634Z 28440 [Note] Connection to database 28440 was interrupted: "employees", user: "xxxx", host: "localhost" (timed out while writing communication packets)
source share