时间:2021-07-01 10:21:17 帮助过:24人阅读
yum-config-manager --
enable
mysql57-community-dmr
#yum repolist enabled |
grep
mysql
这里会报错:
,缺少libsasl2.so.2()(64bit)
解决办法:
[mysql57-community]
name=MySQL 5.7 Community Server
## baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
You must reset your password using ALTER USER statement before executing this statement.
(在执行此语句之前,必须使用ALTE USER语句重设密码。)
alter user user() identified by "root";
但是会报 Your password does not satisfy the current policy requirements.(您的密码不符合当前的策略要求。)
1. set global validate_password_policy=0;(密码长度符合即可)
2. set global validate_password_length=1;(修改密码默认长度为最小值,即4位)
-A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
重启防火墙,#service iptables restart
查询 mysql 库的 user 表:select host, user from user;
CentOS7.3 yum install MySQL5.7
标签:mysql5.6 最小 启动 details 查询 oba ref list 提示