mysql8授权 grant all privileges on 语句报错 You have an error in your SQL syntax;
报错语句
**mysql>GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;**
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '. TO 'admin'@'%' IDENTIFIED BY '123' WITH GRANT OPTION' at line 1`
mysql8.0版本使用语句变为:
grant all privileges on *.* to 'root'@'localhost';
5万+

被折叠的 条评论
为什么被折叠?



