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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:25:42+00:00 2026-06-08T17:25:42+00:00

Because of a bug i had inserted a LOT of rows in one table.

  • 0

Because of a bug i had inserted a LOT of rows in one table. I deleetd the rows but my db is >1gb instead of being 200mb. How do i vaccumm it? I trid optimizing the table. It didnt shrink the size. Am i stuck with this huge mysql file?

  • 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-08T17:25:43+00:00Added an answer on June 8, 2026 at 5:25 pm

    Create an identical table structure, select * into newtable from oldtable then drop oldtable then alter table newtable rename oldtable. The quickest cross-platform way.

    (In mysql you can use rename table newtable to oldtable, but that’s not standard sql.)

    One caveat, this only works if mysql is set up to be one file per table, which is the default AFAIK, but it can also be set up to be all tables in one file. If it’s set up that way, you’ll have to clone the entire database, a much more significant undertaking. If you have a single “ibdata” file, you have all tables in one file, and you should probably see this answer.

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

Sidebar

Related Questions

I had a serious bug in my code, which luckily I found :), because
The following causes a bug because file.eof() apparently doesn't return true until a read
Note the comment below. It cannot compiled on UVA because of a bug in
I think I might be causing a bug in my code because I'm unclear
Because it takes me a lot of time to integrate the Sherlock Action Bar
I'm writing an HTTP parsing library (because I couldn't find a good one in
So I just fixed an interesting bug in the following code, but I'm not
At one of our customer installations we had thousands of occurrences of the same
I am puzzled because I cannot figure where my bug/problem is. I have a
I noticed that a site I'm maintaining had a little layout bug in FF/IE8/Chrome

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.