/etc/init.d/mysqld stop
/usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf --skip-grant-tables &
#mysql -uroot
mysql>use mysql;
mysql>update user set password=password('new_password') where user='root';
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |