CREATE USER 'Grant'@'localhost' IDENTIFIED BY 'bestpasswordever';
我如何向名为“授予”的用户授予权限?它引发错误。
GRANT INSERT, DELETE
ON table
TO Grant@localhost;
GRANT INSERT,DELETE
ON table
TO 'Grant'@'localhost';
请参见文档中的Section 6.2.4 (Specifying Account Names)。
帐户名语法为'user_name'@'host_name'。
[当使用保留的关键字或带有非法字符的标识符作为标识符时,必须使用反引号
GRANT INSERT, DELETE
ON table
TO `Grant`@localhost;