Install MySQL

<note>First consider fallowing all the previous steps the WD MyBook World Edition Hacks tutorial</note> <note tip>Please read the official MySQL documentation before proceeding. MySQL Installation Using a Source Distribution</note>

# groupadd mysql
# useradd -g mysql mysql
# chmod -R 777 /tmp
# cd /tmp
# wget http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.51.tar.gz/from/http://ftp.astral.ro/mirrors/mysql.com/
# mv index.html mysql-5.0.51.tar.gz
# gunzip < mysql-5.0.51.tar.gz | tar xvf -
# cd mysql-5.0.51
# ./configure --prefix=/usr/local/mysql --with-low-memory
# make
# make install
# cp support-files/my-medium.cnf /etc/my.cnf
# cd /usr/local/mysql
# chown -R mysql .
# chgrp -R mysql .
# bin/mysql_install_db --user=mysql
# ldd /usr/local/mysql/bin/mysql
# echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf
# ldconfig
# chown -R root .
# chown -R mysql var
# bin/mysqld_safe --user=mysql &
# cp support-files/mysql.server /etc/init.d/mysql
# chmod +x /etc/init.d/mysql
# ln -s /etc/init.d/mysql /etc/init.d/S40mysql
# bin/mysqladmin version
# bin/mysqladmin variables
# bin/mysqlshow
# bin/mysqlshow mysql
# less /etc/my.cnf 
# bin/mysql
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
SET PASSWORD FOR 'root'@'HOST_NAME' = PASSWORD('newpwd');
SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('newpwd');
DROP USER '';
DROP USER ''@'localhost';
DROP USER ''@'HOST_NAME';