我想允许用户从特定的表和视图中选择,并执行特定的过程。我写了这样一个脚本:
CREATE USER 'user'@'%' IDENTIFIED BY 'user';
GRANT SELECT ON
database.table1,
database.view1,
database.view2
'user'@'%' IDENTIFIED BY 'user'
WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
GRANT EXECUTE ON PROCEDURE
database.procedure1,
database.procedure2
'user'@'%' IDENTIFIED BY 'user'
WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
但它不起作用。我究竟做错了什么?