??????????
1.???mysql
# /etc/init.d/mysql stop
2.?–skip-grant-table& ?????mysql
/usr/bin/mysqld_safe --skip-grant-table&
3. ??root ??
# mysql mysql
mysql> UPDATE user SET password=password('123456') WHERE user='root';
mysql> exit
4.??mysql???
# /etc/init.d/mysql stop
# /etc/init.d/mysql start
# mysql -u root -p
5.????????mysq -u root -p , ????step3?????.