#/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

Trackback

no comment untill now

Add your comment now