Script to rebuild all tables in MySQL/MariaDB database.
241
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.
Content type
Image
Digest
sha256:ef6cb278f…
Size
32 MB
Last updated
5 months ago
docker pull stepik/mysql-rebuilder:0.2.0