赞
踩
https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html
$ rpm -qa | grep mysql
或
$ yum list installed | grep mysql
$ yum -y remove mysql-libs.x86_64
1.下载 mysql57-community-release-el7-8.noarch.rpm 的 YUM 源:
$ wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
2.安装 mysql57-community-release-el7-8.noarch.rpm:
$ yum localinstall mysql57-community-release-el7-8.noarch.rpm
yum repolist enabled | grep "mysql.*-community.*"
[root@sinotest1 jenkins]# yum repolist enabled | grep "mysql.*-community.*"
mysql-connectors-community/x86_64 MySQL Connectors Community 51
mysql-tools-community/x86_64 MySQL Tools Community 63
mysql57-community/x86_64 MySQL 5.7 Community Server 267
yum -y install mysql-community-server
启动mysql:
systemctl start mysqld
mysql安装完成之后,在 /var/log/mysqld.log
文件中给root生成了一个默认密码
grep 'temporary password' /var/log/mysqld.log
打印如下内容:
[root@sinotest1 jenkins]# grep 'temporary password' /var/log/mysqld.log
2018-06-07T02:46:39.003245Z 1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。