Quantcast
Channel: How to shrink/purge ibdata1 file in MySQL - Stack Overflow
Browsing all 11 articles
Browse latest View live

Answer by Pierre-Alexis de Solminihac for How to shrink/purge ibdata1 file in...

Quickly scripted the accepted answer's procedure in bash:#!/usr/bin/env bashdbs=$(mysql -BNe 'show databases' | grep -vE '^mysql$|^(performance|information)_schema$')mysqldump --events --triggers...

View Article



Answer by adjustable_wrench for How to shrink/purge ibdata1 file in MySQL

In a new version of mysql-server recipes above will crush "mysql" database.In old version it works. In new some tables switches to table type INNODB, and by doing so you will damage them.The easiest...

View Article

Answer by Vinay Vemula for How to shrink/purge ibdata1 file in MySQL

Adding to John P's answer,For a linux system, steps 1-6 can be accomplished with these commands:mysqldump -u [username] -p[root_password] [database_name] > dumpfilename.sql mysqladmin -u [username]...

View Article

Answer by Vik for How to shrink/purge ibdata1 file in MySQL

If you use the InnoDB storage engine for (some of) your MySQL tables, you’ve probably already came across a problem with its default configuration. As you may have noticed in your MySQL’s data...

View Article

Answer by Cyno for How to shrink/purge ibdata1 file in MySQL

If your goal is to monitor MySQL free space and you can't stop MySQL to shrink your ibdata file, then get it through table status commands. Example:MySQL > 5.1.24:mysqlshow --status myInnodbDatabase...

View Article


Answer by steveayre for How to shrink/purge ibdata1 file in MySQL

As already noted you can't shrink ibdata1 (to do so you need to dump and rebuild), but there's also often no real need to.Using autoextend (probably the most common size setting) ibdata1 preallocates...

View Article

Answer by John P for How to shrink/purge ibdata1 file in MySQL

That ibdata1 isn't shrinking is a particularly annoying feature of MySQL. The ibdata1 file can't actually be shrunk unless you delete all databases, remove the files and reload a dump.But you can...

View Article

Answer by titanoboa for How to shrink/purge ibdata1 file in MySQL

When you delete innodb tables, MySQL does not free the space inside the ibdata file, that's why it keeps growing. These files hardly ever shrink.How to shrink an existing ibdata...

View Article


How to shrink/purge ibdata1 file in MySQL

I am using MySQL in localhost as a "query tool" for performing statistics in R, that is, everytime I run a R script, I create a new database (A), create a new table (B), import the data into B, submit...

View Article


Answer by Slam for How to shrink/purge ibdata1 file in MySQL

What nobody seems to mention is the impact innodb_undo_log_truncate setting can have.After reading Percona's blog post about the topic, I've enabled in my MariaDB 10.6 the truncation of UNDO LOG...

View Article

Answer by Bren for How to shrink/purge ibdata1 file in MySQL

We recently experienced a bug in MariaDB 10.6.13 (fixed in 10.6.14) that caused our ibdata1 file to grow 5+GB/day. The file grew to over 400GB by the time alerts on disk space usage started to get sent...

View Article
Browsing all 11 articles
Browse latest View live




Latest Images