Chinaunix首页 | 论坛 | 博客
  • 博客访问: 364132
  • 博文数量: 62
  • 博客积分: 1272
  • 博客等级: 中尉
  • 技术积分: 674
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-15 16:58
文章分类

全部博文(62)

文章存档

2017年(1)

2014年(16)

2012年(12)

2011年(27)

2010年(6)

我的朋友

分类: Mysql/postgreSQL

2012-01-31 08:31:07

按照资料,整理如下:
#service mysql stop
#mysqld_safe --skip-grant-tables&
#mysql --user=root mysql
mysql> update user set Password=PASSWORD('new-password-here') WHERE User='root';
mysql> flush privileges;
mysql> exit
#ps -ef|grep mysqld
#kill
#service mysql start


阅读(1440) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~