Sign inSign up

stepik/mysql-rebuilder

By stepik

Updated 5 months ago

Script to rebuild all tables in MySQL/MariaDB database.

Image
0

241

stepik/mysql-rebuilder repository overview

MySQL/MariaDB Table Rebuilder

This script connects to a MySQL/MariaDB server, retrieves the names and sizes of all tables in a specified database, and rebuilds each table from smallest to largest. The script also handles replication on a replica server by stopping and starting replication around each table rebuild and temporarily disabling binary logging to prevent replication failures.

Tag summary

Content type

Image

Digest

sha256:ef6cb278f

Size

32 MB

Last updated

5 months ago

docker pull stepik/mysql-rebuilder:0.2.0