首页 新闻 会员 周边 捐助

MySQL语法总体是错,奔溃了,求救?

0
悬赏园豆:10 [待解决问题]

mysql> set global read_only=0;
Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges
-> grant all privileges on *.* to 'root'@'localhost' identified by '12345678' 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 'grant all privileges on *.* to 'root'@'localhost' identifiedby '12345678' w' at line 2
mysql> flush privileges
-> grant all privileges on *.* to 'root@localhost' identified by 'root' 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 'grant all privileges on *.* to 'root@localhost' identified by 'root' with grant ' at line 2
mysql> grant all privileges on *.* to root'@'localhost identified by 'root' 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 ''@'localhost identified by 'root' with grant option' at line1
mysql> grant all privileges on *.* to 'root`@`localhost' identified by 'root' with grant option;
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
mysql> flush privileges
-> grant all privileges on *.* to 'root`@`localhost' identified by 'root' 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 'grant all privileges on *.* to 'root`@`localhost' identifiedby 'root' with gran' at line 2

Ellco的主页 Ellco | 初学一级 | 园豆:166
提问于:2018-05-26 18:31
< >
分享
所有回答(3)
0

。。。

黄彪114 | 园豆:202 (菜鸟二级) | 2018-05-26 22:42
0

换mysql版本没问题了

Ellco | 园豆:166 (初学一级) | 2018-05-26 22:43
0

。。。。

xuqiong | 园豆:204 (菜鸟二级) | 2018-05-30 01:52
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册