By default, the 5.1.73 version is installed via Yum under CentOS 6.8, and now the requirement is to install the 5.7 version.
MySQL official website: http://www.mysql.com
MySQL Documentation: http://dev.mysql.com/doc/
---------------------------------------------------------------------------------------------------
First, change the database installation source
Find the download page on the MySQL official website and select the Yum Repository: (http://dev.mysql.com/downloads/repo/yum/)
According to your own system version select the corresponding RPM package download, and install (on the download page to ask whether to login to choose not to login to download immediately):
#wgethttp://repo.mysql.com//mysql57-community-release-el6-8.noarch.rpm
#rpm-ivhmysql57-community-release-el6-8.noarch.rpm
Here, the MySQL database installation source has been changed to support the direct download of the latest version from the official website.
Second, install Mysql-server
#yum Install Mysql-server
Third, the configuration of MySQL
#service mysqld Start
#mysql_secure_installation (for initial installation, prompt for password, check in/var/log/mysqld.log)
The default configuration is basically not modified, and the configuration file is stored in:/etc/my.cnf
MySQL official description document: http://dev.mysql.com/doc/
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.