使用localhost连接:

使用IP连接:

解决:
命令提示窗口进到MySQL的bin目录输入账号密码,然后赋予所有用户远程连接权限:

.:表示 所有数据库所有表,%:表示所有ip,by后面为数据库密码。
赋予权限:
mysql>grant all privileges on . to ‘root’@’%’ identified by ‘123’;

刷新配置:
mysql>flush privileges;

连接成功:
、
使用localhost连接:

使用IP连接:

解决:
命令提示窗口进到MySQL的bin目录输入账号密码,然后赋予所有用户远程连接权限:

.:表示 所有数据库所有表,%:表示所有ip,by后面为数据库密码。
赋予权限:
mysql>grant all privileges on . to ‘root’@’%’ identified by ‘123’;

刷新配置:
mysql>flush privileges;

连接成功:
、
7676
4874
1108
4964

被折叠的 条评论
为什么被折叠?