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

针对 42000错误

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

mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'root';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
mysql> flush privileges;

 

posted @ 2019-07-20 15:28  kszsa  阅读(5157)  评论(0编辑  收藏  举报