/ Published in: Bash

Useful when your server runs out of disk space
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
myisamchk -s $(find /var/lib/mysql/ -name *.MYI) /etc/rc.d/init.d/mysqld stop And this to fix the tables that need repairing: myisamchk -r -q <PATH>/table_name.MYI
Comments
