Linux下配置mysql允许远程访问
2015-08-26 13:47
381 查看
1.进入mysql
进入mysql的bin目录,输入mysql -u root -p回车,输入密码进入mysql2.使用mysql库
use mysql3.查看用户表
select host,user from user4.更新用户表
update user set host='%' where user='root' limit 15.强制刷新权限
flush privileges
完成以上步骤即可远程访问数据路了,关键的一句是update user set host='%' where user='root' limit 1,其中%表示允许任意ip远程访问。
进入mysql的bin目录,输入mysql -u root -p回车,输入密码进入mysql2.使用mysql库
use mysql3.查看用户表
select host,user from user4.更新用户表
update user set host='%' where user='root' limit 15.强制刷新权限
flush privileges
完成以上步骤即可远程访问数据路了,关键的一句是update user set host='%' where user='root' limit 1,其中%表示允许任意ip远程访问。
相关文章推荐
- Linux学习记录(6)磁盘分区的基本操作
- Linux 下监测网速的测试接口 --已经测试单位为byte=8bit
- 在Linux中使用线程
- linux路由配置命令
- Linux用户管理各命令的使用
- linux下 玩转ptrace
- linux嵌入式开发新方法:阿里云+arm开发板
- Linux 系统中重启数据库
- Linux下root权限强制踢掉其他用户
- java项目部署linux(ubuntu)常见问题
- Linux下文件读写示例
- L1:linux用户,用户组详细管理命令使用
- linux多线程编程入门
- linux 开启独立iptables日志
- CI在CentOS中的部署与实践LNMP
- Centos 6.6 final 安装 xtrabackup 2.2.12 小记
- linux常用命令
- linux下android开发真机设备识别不了怎么办
- 介绍几个不错的linux下载站和论坛
- linux 学习文章