Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4328514
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:41:39+00:00 2026-05-21T09:41:39+00:00

One of the table in mysql DB is getting locked. Please let me know

  • 0

One of the table in mysql DB is getting locked.
Please let me know the steps that i should follow to find the root cause behind it i.e. who is locking the table and when ?

Thanks,
Sachin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T09:41:40+00:00Added an answer on May 21, 2026 at 9:41 am

    First, check that the table is locked – does it appear in the results of:

    mysql> SHOW OPEN TABLES WHERE in_use;
    

    If it is currently locked, from the command line, run:

    # mysqladmin debug -u <user> -p 
    

    (<user> is most likely root, depending on your set-up)

    Now check your error log (this is inside the data directory by default, find the location by checking your my.cnf file). You should find details of the process doing the locking.

    The relevant bit of the output looks like:

    Current locks:
    lock: 0x7f759da38e90: write
    write     : 0x7f759da97a00 (54:12);
    

    From within the database (with a user with the SUPER privilege) run SHOW PROCESSLIST to find out which session the logs are referring to. In the example above, you want the process ID 54 (identified by the (54:12)).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mysql table that have several records linked to one particular tag.
I am inserting values to one of mysql table and I am getting following
I have a Zend/PHP script that reads rows from a table in one MySQL
In a MySQL database I have two tables linked in a join. One table
What I have is two tables inside of a mysql database. One table contains
by default I have one column in MySQL table to be NULL. I want
I have a huge table from one mysql db, I want to create a
I want to select one record at a time from a MySQL table. I
I have a classified_id variable which matches one document in a MySql table. I
Ok, so i have one really monstrous MySQL table (900k records, 180 MB total),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.