假如我想设置权限,mysql怎么给一个用户赋予grant权限?

求问各位大神,mysql怎么给一个用户赋予grant权限


眼眸繁星
浏览 1295回答 4
4回答

慕婉清6462132

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' --授予对某表的部分权限
打开App,查看更多内容
随时随地看视频慕课网APP