mysql下建立账号并授予所有权限

create user ‘kugou’@’%’ identified by ‘Kug0u@db’; 其中kugou为用户。%:匹配全部主机,该地方还能够设置成‘localhost’,表明只能本地访问,例如root帐户默认为‘localhost‘ Kug0u@db为密码。mysql grant select,insert,update,delete,create on [数据库名称].* to [用
相关文章
相关标签/搜索