Mysql Update Error

Source: Internet
Author: User
Tags mysql update

Today at work when found oneself update a table of a word Duan, think for a long time, the first thought is to extend the operating hours:

Mysql> set innodb_lock_wait_timeout=100mysql> show variables like ' innodb_lock_wait_timeout ';

However, although the time has been extended, the problem has not been resolved, in the Internet to find a lap, found that the MySQL transaction may not be submitted, resulting in the lock table, the solution is as follows:

1 Select *  from Information_schema.innodb_trx 2 3 Kill 15758

Where 15758 is the thread ID

Related Article

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.