Chinaunix首页 | 论坛 | 博客
  • 博客访问: 100747
  • 博文数量: 32
  • 博客积分: 1370
  • 博客等级: 中尉
  • 技术积分: 316
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-29 12:28
文章分类

全部博文(32)

文章存档

2009年(14)

2008年(5)

2006年(13)

我的朋友

分类: Mysql/postgreSQL

2006-08-24 22:51:21

  step1. kill mysql server processID
      可以在${datadir}/hostname.pid 取出pid;
     
  step2. restart mysql server:
      use opt `--skip-grant-tables'
      mysqld_safe --skip-grant-tables --user=mysql&
     
  step3. 使用`mysql -h hostname mysql'命令登录到mysqld server ,修改口令。
   (即连接到mysql db)
     update user set password =password('passwd') where user='root'; 或grant;
     
  step4. flush privileges;
 
  step5. relogin using root with new password;
阅读(1139) | 评论(0) | 转发(0) |
0

上一篇:WINx IP<-->HOSTNAME互查

下一篇:搏克与博客

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