linux授权mysql外网访问
2016-01-13 18:06
381 查看
在mysql的bin目录下执行:mysql -uroot -p密码 登陆到数据:
执行:use mysql;
select host,user,password from user;
可以看到user为root,host为localhost的话,说明mysql只允许本机连接,那么外网,本地软件客户端就无法连接了。调整方法:
执行:update user set host=’%’ where user =’root’;
执行刷新flush privileges;
OK!现在可以访问了!
执行:use mysql;
select host,user,password from user;
可以看到user为root,host为localhost的话,说明mysql只允许本机连接,那么外网,本地软件客户端就无法连接了。调整方法:
执行:update user set host=’%’ where user =’root’;
执行刷新flush privileges;
OK!现在可以访问了!
相关文章推荐
- 文件结构体struct file(Linux 2.6.23内核) (转)
- Linux系统Mysql备份的导入导出
- centos制作yum源
- java 如何判断操作系统是Linux还是Windows
- Linux Mysql 误删除授权表root记录
- Linux编译安装Darwin Streaming Server 6.0.3
- Linux文件权限读书笔记
- linux字符设备
- linux brctl
- Linux命令总结_命令执行顺序
- CentOS-CentOS下Crontab安装使用详细说明
- 在openstack上安装centos 出现的问题scheduler. 虚机内嵌套
- Linux crontab 命令格式与详细例子
- linux常用命令—— 文档编辑(四)
- Linux 软连接 & 硬链接
- Linux Study之--通过udev创建ASM DISK(RAC共享存储)
- linux驱动_实例剖析
- linux学习笔记----7
- linux 安装python2.7.11
- Linux Study之--通过udev创建ASM DISK(RAC共享存储)