ERROR 2013 (HY000) at line 23552: Lost connection to server during query

Hello everyone,
I am facing this issue…

When restore DB and its public/private files from the backup created within ERPNext, it takes something like 20 minutes until the error appears.

* Error: 
ERROR 2013 (HY000) at line 23552: Lost connection to server during query
pymysql.err.OperationalError: (2013, ‘Lost connection to MySQL server during query’)

Has anyone ever had the same problem?

@akram20 your data is a little bit large so it exceeded the time limit for sql. try to encrease them from sql config file .

1 Like

@bahaou First, thank you for your quick response.
Can you tell me, which exact line in the sql config file I need to modify?