Firstly, navigate to "http://www.mysql.com/downloads/mysql/#downloads" , choose "Oracle and Red Hat Linux 6". Download the rpms as shown below:
wget http://www.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.10-1.el6.x86_64.rpm/from/http://cdn.mysql.com/ wget http://www.mysql.com/get/Downloads/MySQL-5.6/MySQL-shared-5.6.10-1.el6.x86_64.rpm/from/http://cdn.mysql.com/ wget http://www.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.10-1.el6.x86_64.rpm/from/http://cdn.mysql.com/ wget http://www.mysql.com/get/Downloads/MySQL-5.6/MySQL-shared-compat-5.6.10-1.el6.x86_64.rpm/from/http://cdn.mysql.com/
Then use md5sum, to check md5 hash on the download site:
md5sum MySQL-shared-compat-5.6.10-1.el6.x86_64.rpm md5sum MySQL-server-5.6.10-1.el6.x86_64.rpm md5sum MySQL-shared-5.6.10-1.el6.x86_64.rpm md5sum MySQL-client-5.6.10-1.el6.x86_64.rpm
If the md5 hash is ok, we can install the rpm in following sequence:
rpm -Uvh MySQL-shared-compat-5.6.10-1.el6.x86_64.rpm rpm -ivh MySQL-shared-5.6.10-1.el6.x86_64.rpm rpm -ivh MySQL-server-5.6.10-1.el6.x86_64.rpm rpm -ivh MySQL-client-5.6.10-1.el6.x86_64.rpm
To turn mysql on when boot:
chkconfig mysql on
To start the mysql service:
service mysql start
To obtain the temporary password:
cat /root/.mysql_secret
To change the mysql root password:
mysqladmin -uroot -p passwordLogin to the newly installed server using its client:
mysql -uroot -pThese are the steps to install latest mysql on CENTOS. Cheers!
No comments :
Post a Comment