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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:23:33+00:00 2026-05-12T11:23:33+00:00

mysql5.0 with a pair of databases A and B, both with large innodb tables.

  • 0

mysql5.0 with a pair of databases “A” and “B”, both with large innodb tables. “drop database A;” freezes database “B” for a couple minutes. Nothing is using “A” at that point, so why is this such an intensive operation?

Bonus points: Given that we use “A”, upload data into “B”, and then switch to using “B”, how can we do this faster? Dropping databases isn’t the sort of thing one typically has to do all the time, so this is a bit off the charts.

  • 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-12T11:23:33+00:00Added an answer on May 12, 2026 at 11:23 am

    So I’m not sure Matt Rogish’s answer is going to help 100%.

    The problem is that MySQL* has a mutex (mutually exclusive lock) around opening and closing tables, so that basically means that if a table is in the process of being closed/deleted, no other tables can be opened.

    This is described by a colleague of mine here:
    http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/

    One excellent impact reduction strategy is to use a filesystem like XFS.

    The workaround is ugly. You essentially have to nibble away at all the data in the tables before dropping them (see comment #11 on the link above).

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

Sidebar

Related Questions

I have a MySQL database that contains a large number of polygons, one for
Let's say I have a MySQL database with 3 tables: table 1: Persons, with
I have a mySQL database table with a column that corresponds to an image
I am trying to query a MySQL database using webpy. From the SQL query,
I have a hefty db server with lots of very similar InnoDB databases. A
I am using Hibernate in a Java application to access my Database and it
I have a page (index.php) that pulls posts from mysql database. The posts are
I currently have a large number of CSVs to import to a MySQL database.
I have installed php5 and mysql5 on my server , I can login to
MySQL stores the date in my database (by default) as 'YYYY-MM-DD' The field type

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.