Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1602135
  • 博文数量: 184
  • 博客积分: 3044
  • 博客等级: 中校
  • 技术积分: 2467
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-25 15:04
文章分类

全部博文(184)

文章存档

2022年(4)

2021年(3)

2020年(1)

2019年(5)

2018年(13)

2017年(6)

2016年(10)

2015年(11)

2014年(11)

2013年(13)

2012年(23)

2011年(25)

2010年(2)

2008年(1)

2007年(5)

2006年(51)

分类: Mysql/postgreSQL

2011-10-19 19:18:39

修改root 密码
mysql -u root
>use mysql
> update user set password=PASSWORD('***') where user='root';
查看一下:
>select host,user from user;


修改:
>grant all privileges on *.* to 'root'@'%' identified by '*******';
>flush privileges;


再用远程转接时就可以发现OK了!
 
新增用户
insert into mysql.user(Host,User,Password) values("localhost","wordpress",password("kingdee"));
grant select ,insert,update,delete on wordpress.* to identified by '****';
阅读(2335) | 评论(0) | 转发(0) |
0

上一篇:Nginx日志分割

下一篇:哎 中 国

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