Skip to main content.

About

注册Marketva,立刻送5美金

Trip Advisor

建设城市 

 

分类归档

这是14 December 2003的归档事记

MySQL忘记管理员密码的解决方法

如果 MySQL 正在运行,首先杀之: killall -TERM mysqld。
启动 MySQL :/usr/bin/safe_mysqld --skip-grant-tables &
就可以不需要密码就进入 MySQL 了。
然后就是
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;

shell>mysqladmin -u root flush-privileges password "newpassword"
重新杀 MySQL ,用正常方法启动 MySQL 。


出处:www.freelamp.com by 徐永久

<   十二月 2003   >
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

当年今日

not found