操作如下:

# mysqld_safe --skip-grant-tables&

# mysql -u root mysql

mysql> UPDATE user SET password=PASSWORD("new password") WHERE user='root';

mysql> FLUSH PRIVILEGES;

 

以上資料出自:http://www.linuxidc.com/Linux/2008-02/11137.htm

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()