mysql远程授权
Posted 鄒成立
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql远程授权相关的知识,希望对你有一定的参考价值。
切换到mysql的mysql数据库,找到user表;
cmd:mysql -u root -p
cmd:use mysql;
cmd:select host,user,password from user;
更新user表信息:
cmd:update user set host = ‘%‘ where user = ‘root‘;
为root用户授权密码为root:
cmd:grant all privileges on *.* to [email protected]‘%‘ identified by ‘root‘;
刷新权限:
cmd:flush privileges;
以上是关于mysql远程授权的主要内容,如果未能解决你的问题,请参考以下文章