MySQL executes INSERT statements such as 1205 Lock wait timeout exceeded try restarting transaction

Source: Internet
Author: User

MySQL executes the INSERT and other statements to report the following error:

1205 Lock wait timeout exceeded try restarting transaction


The solution is as follows:

Method One: View the current thread, if there is a statement that is executing you, kill it

Show Processlist; Kill PID

Method Two (method one does not execute): restart MySQL Database

Service mysqld Restart

Note: Restarting MySQL will kill all threads in the execution

This article from "Xiaobao" blog, declined reprint!

MySQL executes INSERT statements such as 1205 Lock wait timeout exceeded try restarting transaction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.