MySQL的 root 忘記密碼
/etc/rc.d/init.d/mysqld stop /usr/bin/safe_mysqld --skip-grant-tables & mysql -u root -p mysql
update user set password=password("新密碼") where user="root" and host="localhost";
flush privileges;
quit
/etc/rc.d/init.d/mysqld stop /etc/rc.d/init.d/mysqld start