修改root密码"

update user set password=password('123') where user='root' and host='localhost';

pkill mysql 或者/etc/init.d/mysql stop