mysql 相关
来源:互联网 发布:apache web服务器 编辑:程序博客网 时间:2024/05/22 08:24
mysql -u root -p mysql>use mysql; mysql>select 'host' from user where user='root'; mysql>update user set host = '%' where user ='root'; mysql>flush privileges; mysql>select 'host' from user where user='root'; 第一句是以权限用户root登录 第二句:选择mysql库 第三句:查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称) 第四句:修改host值(以通配符%的内容增加主机/IP地址),当然也可以直接增加IP地址 第五句:刷新MySQL的系统权限相关表 第六句:再重新查看user表时,有修改。。 重起mysql服务即可完成。
0 0
- mysql 相关
- MYSQL 相关
- Mysql相关
- mysql 相关
- Mysql 相关
- mysql相关
- MySQL 相关
- mysql相关
- mysql 相关
- Mysql 相关
- mysql相关
- MySQL相关
- mysql相关
- mysql 相关
- Mysql相关
- mysql相关
- Mysql相关
- MySQL相关
- shell,数据库定时备份及清理
- img标签中src包含data URL scheme-在一个URL中包含图片数据
- 如何把图片UIImageView某个区域变成透明
- PHP的包依赖管理工具Composer简介
- 详解Oracle DELETE和TRUNCATE 的区别
- mysql 相关
- C++11 thread
- Leetcode Problem.190—Reverse Bits C++实现
- 第五章 原油评估
- Leetcode Problem.191—Number of 1 Bits
- log4j配置
- 宏定义,const 与 sizeof
- JS setTimeout()学习笔记
- IPv6下的DAD检测