通过二进制包使用rpm命令安装mysql 5.7.18

物料:http://mirrors.sohu.com/mysql/MySQL-5.7/
所需安装包:mysql-community-client-5.7.18-1.el6.x86_64.rpm
mysql-community-common-5.7.18-1.el6.x86_64.rpm
mysql-community-devel-5.7.18-1.el6.x86_64.rpm
mysql-community-embedded-5.7.18-1.el6.x86_64.rpm
mysql-community-libs-5.7.18-1.el6.x86_64.rpm
mysql-community-server-5.7.18-1.el6.x86_64.rpm

安装步骤:
1、安装所需要的相关包
yum install numactl perl perl-devel libaio libaio-devel perl-Time-HiRes perl-JSON.noarch

2、安装命令
rpm -ivh *

3:启动服务
chkconfig mysqld on
service mysqld start

4、查询密码
grep “password” /var/log/mysqld