Archive for April, 2015
mySQL: repair and optimize all tables in all databases
by Ali on Apr.28, 2015, under Linux
mysqlcheck -u root -p --auto-repair --optimize --all-databases
You will be asked for root password and command will run. If you want to do it through cron, put your password immediately after -p… like -ppassword.
Linux: edit crontab with nano instead of vi
by Ali on Apr.15, 2015, under Linux
Everyone hates vi… I sure do. If you can’t or don’t want to permanently change your crontab editor use this:
env EDITOR=nano crontab -e
Linux: VMware Tools on Red Hat or CentOS Prerequisites
by Ali on Apr.06, 2015, under Linux
This should do it:
yum install perl gcc make kernel-headers kernel-devel audit binutils glibc-headers
If vmware tools install cannot find your linux headers, throw these in too and try again:
yum install kernel-headers-`uname -r` kernel-devel-`uname -r`