Mysql-配置数据库连接权限

MySQL 数据库连接权限

给用户赋连接权限

-- 给所用用户赋远程连接权限
update user set host="%",password_expired='N' where host='localhost';
-- 给指定用户***赋远程连接权限
update user set host="%",password_expired='N' where user='***';

##取消用户远程连接权限

-- 取消除***用户的其他用户的远程连接权限
update user set host="localhost" where  user='***';
发布了36 篇原创文章 · 获赞 3 · 访问量 2933

猜你喜欢

转载自blog.csdn.net/weixin_39836585/article/details/102586937
今日推荐