centos7安装mysql-5.7.24(rpm安装)
关于mysql的4个rpm包
[root@elk-200 ~]# ls mysql/ -lh
total 192M
-rw-r--r-- 1 root root 25M Aug 26 12:38 mysql-community-client-5.7.24-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 275K Aug 26 12:38 mysql-community-common-5.7.24-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 2.2M Aug 26 12:38 mysql-community-libs-5.7.24-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 166M Aug 26 12:38 mysql-community-server-5.7.24-1.el7.x86_64.rpm
rpm包 网盘链接https://pan.baidu.com/s/1aNKUJk8OJrSN9AoajKWHzg
下载下来解压
yum -y install make gcc-c++ cmake bison-devel ncurses-devel libaio libaio-devel
rpm -qa|grep mariadb
rpm -e --nodeps mariadb-libs-5.5.60-1.el7_5.x86_64
rpm -ivh mysql-community-common-5.7.24-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.24-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.24-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.24-1.el7.x86_64.rpm
mysqld --initialize --user=mysql 初始化数据库
tail -10 /var/log/mysqld.log 查看root密码
systemctl start mysqld && systemctl enable mysqld