Install MySQL step by step

download mysql-{version}-linux-glibc2.12-{arch}.tar.gz

cp mysql-{version}-linux-glibc2.12-{arch}.tar.gz /your-mysql-prefix-path/
tar zxvf mysql-{version}-linux-glibc2.12-{arch}.tar.gz
mv mysql-{version}-linux-glibc2.12-{arch} mysql
vi /etc/my.cnf
cd mysql

# --lc-messages-dir=/your-mysql-prefix-path/mysql/share
./bin/mysqld --initialize

cp support-files/mysql.server /etc/init.d/mysql
service mysql start
./bin/mysql -uroot -h127.0.0.1 -p