给用户设置密码: mysqladmin -u root password "password" 更改用户的密码:mysqladmin -u root password oldpass "newpass"