Randy's Blog
Ramblings of an overworked sysadmin.
  • Home
  • About Randy

Tags Archives: repair

MySQL: How To Repair & Optimize All Tables in All Databases

Posted on June 15, 2009 by Randy

The following command can be used to repair and optimize all tables in a MySQL database.  This can be useful on a busy server with many tables after a hard reboot or otherwise unclean shutdown. mysqlcheck -u root -p –auto-repair –check –optimize –all-databases

Categories: Linux. Tags: all databases, all tables, mysql, optimize, and repair. Leave a comment
← Previous postNext post →

Recent Posts

  • Set DNS and Default Route in PFSense from Console
  • Fixing default console resolution in Ubuntu
  • The mysterious /tmp/.tmp folder
  • MDADM Cheat Sheet
  • Automatically update all vulnerable timthumb files on Cpanel

Tag Cloud

all databases all tables asterisk centos cisco citrix copy cpanel cpanel license invalid update csf download data recovery dd ddos debian etherchannel exploit foundry Free Internet Radio grouping imagemagick init javascript kernel lenny linux linux firewall load sharing local storage lvm mount mysql optimize perl pfsense php pv repair scripts shell streaming timeout ubuntu windows xen xenserver
  • Randy's Blog
Powered by WordPress & Built on WP Framework