Grant execute 在 table 上 运行 时给出非法 Grant/Revoke 命令错误
Grant execute gives Illegal Grant/Revoke command Error when run on table
为什么这不起作用?
我试过 GRANT
:
GRANT DELETE,INSERT,SELECT,UPDATE,TRIGGER,EXECUTE ON databasename.tablename
TO 'user123'@'%' IDENTIFIED BY 'pas$-word11';
返回错误:
ERROR 1144 (42000): Illegal GRANT/REVOKE command;
please consult the manual to see which privileges can be used`
我发现 EXECUTE 权限不能 运行 指定任何 table,因为“级别”不是针对 table
(关于授权执行)
Enable the user to execute stored routines. Levels: Global, database,
routine.
我不得不 运行 与
分开执行
GRANT EXECUTE ON tablename.* TO 'user123'@'%' IDENTIFIED BY 'pas$-word11';
为什么这不起作用?
我试过 GRANT
:
GRANT DELETE,INSERT,SELECT,UPDATE,TRIGGER,EXECUTE ON databasename.tablename
TO 'user123'@'%' IDENTIFIED BY 'pas$-word11';
返回错误:
ERROR 1144 (42000): Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used`
我发现 EXECUTE 权限不能 运行 指定任何 table,因为“级别”不是针对 table
(关于授权执行)
Enable the user to execute stored routines. Levels: Global, database, routine.
我不得不 运行 与
分开执行GRANT EXECUTE ON tablename.* TO 'user123'@'%' IDENTIFIED BY 'pas$-word11';