登录:
mysql -u root
mysql -uroot -p
修改密码:
UPDATE user SET Password = password ( 'new-password' ) WHERE User = 'root' ;
flush privileges ;