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
。。。
换mysql版本没问题了
。。。。