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';
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)