Home > Database > Mysql Tutorial > body text

What should I do if mysql table is locked?

藏色散人
Release: 2020-09-16 16:26:00
Original
28047 people have browsed it

Solutions to mysql table being locked: 1. Violent solution, that is, restart MYSQ; 2. Check the table status through the "show processlist;" command; 3. Kill the lock through the "KILL10866;" command The process ID of the table.

What should I do if mysql table is locked?

The solution to the mysql table being locked is as follows:

1. Violent solution

Restart MYSQL (restart solution Question tool, manual and funny)

2. Check the table situation:

show processlist;
Copy after login

What should I do if mysql table is locked?

State状态为Locked即被其他查询锁住
Copy after login

3. Kill the process ID of the locked table

KILL   10866;//后面的数字即时进程的ID
Copy after login

The above is the detailed content of What should I do if mysql table is locked?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!