mysql> grant all privileges on *.* to root @’%’ 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 '’%’ identified by '12345678' with grant option' at line 1
高手来啊

第1个回答  2011-07-07
grant all privileges on *.* to root@'%' identified by '12345678' with grant option;
你的分号是中文的,改过来就行了,给个好评的呀。本回答被提问者采纳
第2个回答  2019-03-13
grant all privileges on *.* to 'root'@'%' identified by '12345678' with grant option;
root前后加'
第3个回答  2011-07-08
你 %的前后俩单引号为啥看着格式不一样呢··· 跟这个有关系么
相似回答