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

Tags Archives: optimize

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

  • Remount read/write in single user mode
  • Pacemaker / Corosync / DRBD Cheatsheet
  • Exchange 2012 Allow Relay from IP
  • Increasing max files or folders per directory on Linux EXT filesystem
  • Reset Supermicro IPMI password with ipmitool

Tag Cloud

all databases all tables asterisk centos console copy cpanel csf download data recovery dd ddos debian exploit firmware Free Internet Radio iis init javascript kernel kvm lenny linux lsi lvm mdadm megacli megaraid mount mysql optimize patch perl pfsense php pv raid repair shell streaming timeout ubuntu wifi windows xen xenserver
  • Randy's Blog
Powered by WordPress & Built on WP Framework