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 8019995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:33:49+00:00 2026-06-04T21:33:49+00:00

When I try to drop a table, MySQL hangs. I don’t have any other

  • 0

When I try to drop a table, MySQL hangs. I don’t have any other open sessions. How to resolve this? I have waited for 10 hours and the process has not terminated.

  • 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-06-04T21:33:50+00:00Added an answer on June 4, 2026 at 9:33 pm
    Waiting for table metadata lock
    drop table tableA name
    
    SELECT l1.lat, l1.lon, l2.zipcode FROM tableA l1, tableBl2 where l1.lat = l2.latitude and l1.lon = l2.longitude limit 10
    

    If this is your table, see this link

    you have an implicit deadlock. Kill the other transactions to release the drop, or kill the drop to release the other transactions.

    You can use KILL thread_id, in sql_plus.


    I’m adding further information since I came up with another interesting experience.

    Metadata Dead locks may equally happen between a ddl operation on a given table (drop, alter…) and a select query on that table.

    Yes, select.

    So, if you loop over a cursor in mysql (or php, for example with pdo::fetch), and you run a ddl statement on the same table(s), you will get a deadlock.

    One solution to this atypical scenario is to release the implicit locks with a commit statement systematically after any select statement is completely fetched.

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

Sidebar

Related Questions

I'll try to explain this the best I can. I have a drop down
I have this sequence of queries: begin execute immediate 'drop table mytable1'; exception when
I got this code.. ..... try: task_db.cursor.execute('DROP TABLE IF EXISTS `tasks`') print Affected: %d
My target DB is MySQL, but lets try to look at this problem more
Mysql mistake (don't laught please) I made a script that generates statistics table for
I am trying to populate drop down from mysql table. I am able to
I have create two tables with reference with another table: I like this: Table1:
I am using MYSQL 5.1. When i try to drop a column in a
$(item).droppable({ drop: function(event, ui) { console.log(triggered); } }); I try to call drop by
I try to drop unique constraint for column in h2, previously created as info

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.