更改 root 密碼

mysqladmin -u root -p'old-password' password 'new-password'