未分類 mysql 修改密碼 12 1 月, 2011 / 在〈mysql 修改密碼〉中留言功能已關閉 sudo mysqladmin password newpass mysql> set password for ‘root’@’localhost’ = password(‘1234’);mysql> flush privileges;或 mysql> UPDATE mysql.user SET Password = PASSWORD(‘newpwd’) -> WHERE User = ‘root’;mysql> FLUSH PRIVILEGES;