任务描述
1.赋予用户u1@localhost在petstore数据库上的所有权限,并允许u1@localhost每小时最多查询(max_queries_per_hour)10次。
2.收回u1@localhost在所有表上的查询权限。
3.在mysql.db表中查看u1的所有信息。
相关知识
开始你的任务吧,祝你成功!
USE petstore;
######### Begin #########
use mysql;
grant all on petstore.* to'u1'@'localhost' identified by'123';
grant select,update,insert on petstore.*to 'u1'@'localhost' with max_queries_per_hour 10;
revoke select on petstore.* from 'u1'@'localhost';
select *from mysql.db where user='u1';
######### End #########