当我尝试选择功能时
SELECT myDatabase.myFunction('');
我收到错误
ERROR 1142 (42000): SELECT command denied to user 'myUser'@'localhost' for table 'myTable'
虽然用户拥有所有权限
mysql> show grants for myUser;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for myUser@% |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'myUser'@'%' IDENTIFIED BY PASSWORD '' |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE ON `myDatabase`.* TO 'myUser'@'%'|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
我也可以直接访问 myTable 没有任何问题。
任何帮助将不胜感激。
PS所有函数,表,数据库,用户名都可以,以防我在这篇文章中拼错了一些东西。