求问各位大神,mysql怎么给一个用户赋予grant权限
4 回答
慕婉清6462132
TA贡献1804条经验 获得超2个赞
grant all on *.* to username@'host' identified by 'password'; --授予全部权限grant all on databasename.* to username@'host' identified by 'password' --授予对某库的全部权限grant insert,update,select on databasename.tablename to username@'host' identified by 'password' --授予对某表的部分权限
- 4 回答
- 0 关注
- 1356 浏览
添加回答
举报
0/150
提交
取消