Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1691585
  • 博文数量: 362
  • 博客积分: 10587
  • 博客等级: 上将
  • 技术积分: 4098
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-10 18:15
文章分类

全部博文(362)

文章存档

2014年(1)

2013年(58)

2011年(115)

2010年(112)

2009年(76)

分类: Mysql/postgreSQL

2011-07-14 20:55:37

mysql> REVOKE all  on *.* from root@'192.168.1.12';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)






use mysql

select user,host,password from user;

revoke all on *.* from root@"%";

delete from user where user="root" and host='%';

grant select  on *.* to root@'%' IDENTIFIED BY "123456"; 
阅读(934) | 评论(0) | 转发(0) |
0

上一篇:ubuntu cron日志位置

下一篇:Gentoo下LAMP安装

给主人留下些什么吧!~~