步骤一:准备下载mysql源安装包
wget https://repo.mysql.com//mysql57-community-release-el7-8.noarch.rpm
步骤二:安装mysql源
yum localinstall mysql57-community-release-el7-8.noarch.rpm
步骤三:安装mysql
yum install mysql-community-server
我这总下载量大概248M
步骤四:安装完后要设置下开机启动:
systemctl start mysqld
systemctl enable mysqld
systemctl daemon-reload
步骤五:查看修改mysql默认密码:
grep 'temporary password' /var/log/mysqld.log
set password for 'root'@'localhost'=password('123456');
ok,安装完成
站在巨人的肩膀才可以看的更远!!!仅献给自己