programming-examples/sql/UserManagement/12. How to Grant permission to a user so that (s)he can execute not more than a specific number of queries in an hour.sql
2019-11-18 14:05:53 +01:00

8 lines
309 B
SQL

/*12. How to Grant permission to a user so that (s)he can execute not more than a specific number of queries in an hour.
*/
create user steffi@localhost identified by 'mypassword';
grant select on posts.* to steffi@localhost
identified by 'mypassword' with MAX_QUERIES_PER_HOUR 50;
flush privileges;