MacOS終端修改mysql密碼報錯:You have an error in your SQL syntax; check the manual that corresponds to your..

安裝完成後使用如下語句修改密碼,結果出現報錯提示。code set password = password('root'); 報錯信息:blog 解決方法:使用另外一種語句進行修改:class ALTER USER 'root'@'localhost' IDENTIFIED BY '新密碼'; 結果:修改爲功。密碼
相關文章
相關標籤/搜索