标签:sql 去掉 temp data 创建 val 安装 log off
创建用户并授权
GRANT ALL PRIVILEGES ON *.* TO ‘caoxiaobo‘@‘%‘ IDENTIFIED BY ‘Caoxiaobo0917!‘ WITH GRANT OPTION;
给root授予所有权,包括远程访问
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘1‘ WITH GRANT OPTION;
第一次安装,查看root密码
grep ‘temporary password‘ /var/log/mysqld.log
去掉密码策略,修改my.cfg,在[mysqld]添加
validate_password = off
修改密码
使修改生效
FLUSH PRIVILEGES;
标签:sql 去掉 temp data 创建 val 安装 log off
原文地址:https://www.cnblogs.com/dyh004/p/11284880.html