十
01
#/etc/rc.d/init.d/mysqld stop //停止MYSQL
#/bin/mysqld_safe –skip-grant-tables& //使用“-skip-grant-tables”参数来启动MySQL。
# /usr/bin/mysql -u root
mysql> use mysql
mysql> UPDATE user SET password=password(‘newpassword’) WHERE user=’root’;
mysql> FLUSH PRIVILEGES;
mysql>quit
#/etc/rc.d/init.d/mysqld restart
Address: http://99dev.net/archives/215
no comment untill now