Monthly Archives: January 2011

Mysql repair all dbs

Repair & Optimize mysqlcheck -Aor -u root -p Repair Only mysqlcheck -Ar -u root -p Optimize Only mysqlcheck -Ao -u root -p

Posted in Linux | Leave a comment

Dos2Unix binary prob

Problem is that dos2unix doesn’t ignore binary files by default. You need to uninstall dos2unix first and then reinstall new version from: dos2unix-5.1.1.tar.gz Source code Run: tar xfvz [ARCHIV].tar.gz make make install Convert rekursiv: find . -type f \! … Continue reading

Posted in Linux | Leave a comment

Swap file / failed to allocate memory

Problem: Error : Failed to allocate memory Solution: Create a swapfile in e.g. with 512MB dd if=/dev/zero of=/swapfile1 bs=1M count=512 mkswap /swapfile01 swapon /swapfile01 vi /etc/fstab /swapfile01 swap swap defaults 0 0 After restart run free -m and check if … Continue reading

Posted in Linux | 1 Comment