Mysql添加用户并授予只能查询权限

进入cmd控制台: 使用root账户进行登录:mysql -u root -p 创建用户:create user '你的新名字'@'%' identified by '你的新密码'; 授予权限:grant select on database_name.* to 'test'@'%'; 刷新权限缓存:flush privileges; 创建成功即可使用新用户名密码进行登录。 注意!!!在mysql
相关文章
相关标签/搜索