Reset the MySQL password

You forgot your MySQL password. No problem, you can recover it easily. Stop the MySQL service with # /etc/init.d/mysql stop …and restart it without a password: # mysqld_safe –skip-grant-tables & You’ll get an output similar to [1] 5958. Now press Enter and type the following one after the other: # mysql -u root mysql> use… Read More »

Restore GRUB after installing Windows

Whenever you reinstall Windows with an existing Linux installation already present on the hard drive, the MBR gets an overwrite. You can restore GRUB to the previous settings by booting a Linux Live CD and following the steps below: 1. Insert the Live CD and reboot your computer; 2. After reaching the desktop, open up… Read More »

Get rid of SWAP in Linux

If for whatever reason you wish not to use your Linux SWAP anymore, you can use the swapoff command. Do a swapon -s to see to which partition SWAP belongs to then a free -mt to check available memory. If you still want to give up your SWAP, try a swapoff /dev/hdxx where /dev/hdxx is… Read More »