MySql修改配置允许远程连接

来源:互联网 发布:聂士成 知乎 编辑:程序博客网 时间:2024/06/02 01:59

root登录

切换到mysql数据库

use mysql;

查看user表

select user,host from user;

增加ip

grant all privileges on *.* to root@"xxx.xxx.xxx.xxx" identified by "密码";
或(%表示允许所有ip)
grant all privileges on *.* to root@"%" identified by "密码";

flush privileges;

好记性不如烂笔头~~

0 0
原创粉丝点击