mysql8.0 grant 创建账号及权限记录

针对 42000错误

原文:https://stackoverflow.com/questions/50177216/how-to-grant-all-privileges-to-root-user-in-mysql-8-0

mysql> USE mysql;
mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'root';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
mysql> flush privileges;
posted @ 2020-07-24 01:39  秋华  阅读(1159)  评论(0编辑  收藏  举报