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;

猜你喜欢

转载自www.cnblogs.com/qiu-hua/p/13369831.html