centos7默认的mariadb,可以通过添加mysql的rpm包来网络安装,不过太慢了。

卸载mariadb

rpm -qa | grep mariadb
//得到mariadb的文件依赖,的卸载
rpm -e --nodeps mariadb*

卸载旧的依赖

yum remove mysql-libs 

可以直接下载搜狐镜像里面的mysql bundle包进行安装

wget http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.16-1.el5.x86_64.rpm-bundle.tar
tar -xvf mysql-5.7.16-1.el5.x86_64.rpm-bundle.tar
mkdir mysql
mv mysql* mysql
mv mysql-5.7.16-1.el5.x86_64.rpm-bundle.tar ../
yum install mysql*
service mysqld start

此时,需要查看生成的临时密码:

 grep 'temporary password' /var/log/mysqld.log

完成

centos7 快速安装mysql5.7

 

相关文章:

  • 2021-05-17
  • 2021-07-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-07-13
  • 2021-05-15
相关资源
相似解决方案