摘要: 创建用户:create user 'user1'@'%' identified by 'howhy@123'; 删除用户:drop user 'user1'@'%' ; 查看当前用户权限:show grants; 查看用户权限:show grants for 'user1'@'%'; 给用户授权:g 阅读全文
posted @ 2022-06-08 16:57 howhy 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 读锁:session1:lock table book read; unlock tables; session1可以读book 不可以写book 也不可以读写其它表 session2可以读book 也可以读写其它表 可以写book(但阻塞的需要session1解锁后unlock tables;) 阅读全文
posted @ 2022-06-08 10:01 howhy 阅读(87) 评论(0) 推荐(0) 编辑