杀死mysql;
mysqld_safe --user=root --skip-grant-tables
mysql
use mysql
update user set password=password('1234') where user='root';
flush privileges;