请见:
grant all privileges on test_db.* to testadmin@"10.40.74.180" identified by 'testadmin123' with grant option;
grant all privileges on 数据库名.表名 to 用户名@"授权机器IP" identified by '密码' with grant option;
SQL权限管理详解
本文深入探讨了SQL中grant语句的使用,详细介绍了如何授予特定数据库和表的权限给指定的用户,包括权限的粒度控制和选项设置。
请见:
grant all privileges on test_db.* to testadmin@"10.40.74.180" identified by 'testadmin123' with grant option;
grant all privileges on 数据库名.表名 to 用户名@"授权机器IP" identified by '密码' with grant option;
4439
4395

被折叠的 条评论
为什么被折叠?