删除表时出错:
SQL query:
DROP user IF EXISTS 's01'@'%';
MySQL said: Documentation
#1064 - 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 'if exists 's01'@'%'' at line 1
不删除表的错误:
SQL query:
/*Students*/ CREATE User 's01'@'%' IDENTIFIED BY 'pw1';
MySQL said: Documentation
#1396 - Operation CREATE USER failed for 's01'@'%'
我的一些代码示例:
Drop user if exists 's01'@'%';
flush privileges;
/*Students*/
Create User 's01'@'%' Identified by 'pw1';
我不完全知道出了什么问题。我查了一下,它说添加刷新权限,但我仍然得到相同的两个错误。