In the past two days, a program is being tested. The program has a large amount of data access to the mysql database. Recently, it was accidentally unable to be queried. Use navicat to troubleshoot server issues
In the past two days, a program is being tested. The program has a large amount of data access to the mysql database. Recently, it was accidentally unable to be queried. Use navicat to troubleshoot server issues
In the past two days, a program is being tested. The program has a large amount of data access to the mysql database. Recently, it was accidentally unable to be queried.
Using navicat to check the server status, we found that many processes are locked. One query statement is always in the sending data status, and all other processes are locked.
After the process is completed, the mysql database returns to normal again.
Therefore, there are several solutions to mysql locked:
1. Shut down the locked process;
2. Multiple queries are handled by the program to reduce the burden on the database;
3. Optimize the server:
Below