-h127.0.0.1 -uroot -p你的密码
use mysql;

CREATE
USER 'root'@'%' IDENTIFIED BY '你的密码'; GRANT ALL ON *.* TO 'root'@'%'; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '你的密码'; FLUSH PRIVILEGES;

 

posted on 2022-03-26 23:19  许一朵岁月  阅读(240)  评论(0编辑  收藏  举报