Answer the question
In order to leave comments, you need to log in
MySQL connection error. How to fix?
When scripts that intensively pull the database are running, the Django 2.2 admin panel starts periodically giving such an error, while the scripts themselves work fine and do not fall.
Lost connection to MySQL server at 'reading initial communication packet', system error: 95
Answer the question
In order to leave comments, you need to log in
You create a new connection for every request. Under load, your DBMS will spend more time establishing and breaking connections than executing queries. Well, it looks like your project is exceeding the number of connections allowed by the DBMS configuration. Try using persistent connections .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question