MySQL5.7安装

2020-03-06  本文已影响0人  不着方寸

mysql

yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
yum install mysql-community-server
service mysqld start

查看临时密码

grep 'A temporary password' /var/log/mysqld.log |tail -1
/usr/bin/mysql_secure_installation

降低密码强度要求

set global validate_password_policy=LOW; 
alter user 'root'@'localhost' identified by 'yourpassword';

允许其他host登录

use mysql;
update user set host = '%' where user = 'root';
FLUSH PRIVILEGES;
上一篇 下一篇

猜你喜欢

热点阅读