时间:2021-07-01 10:21:17 帮助过:21人阅读
2.执行mysql -uroot -p,输入默认密码登录
3.执行ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘新密码‘;即可修改密码;
注意密码长度保持一致。
1.创建一个新用户:CREATE USER ‘你创建一个用户名‘@‘%‘ IDENTIFIED BY ‘密码‘;
2.授予该用户远程登录的权限
GRANT ALL ON *.* TO ‘刚才创建的用户名‘@‘%‘;
1.修改密码强度set global validate_password.policy=LOW;
2.修改加密策略:
ALTER USER ‘你的用户名‘@‘%‘ IDENTIFIED BY ‘密码‘ PASSWORD EXPIRE NEVER;
ALTER USER ‘用户名‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘密码‘;
FLUSH PRIVILEGES;
CentOS下安装mysql
标签:stat 状态 comm 一个用户 nat rpm func cti 目录