1, first to the MySQL official online to find;
Website: http://dev.mysql.com/downloads/
Discover the Yum MySQL repot option:
2. Find the MySQL yum repo address in the URL above:
http://dev.mysql.com/downloads/repo/yum/
3. Find the need for a specific system version to find Yum repo
4. Find Quick Instructions:
5, through the reading guidance found that the first need to download and system matching repo:
6, check the system version is:
Cat/etc/redhat-release
Found to be 6.2
Download yum repo rpm using wget:
Before you should use right-click to save the download version of the link:
wget http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
7. Use
RPM-UVH mysql-community-release-el6-5.noarch.rpm
8. Installation
sudo yum install Mysql-community-server
9. Start the service:
sudo service mysqld start: note is mysqld
View status: Sudo service mysqld status
10. Close the service:
sudo service mysqld stop:
Note: This installation of MySQL is no password, you can login directly, need to change the password
3. Find the need for a specific system version to find Yum repo
Yum install MySQL