使用 mysqldump進行備份時遇到 [Warning] Using a password on the command line interface can be insecure.

使用mysql_config_editor匯出 指令為:mysql_config_editor set --login-path=設定名稱 --user=帳號  --host=IP或網址 --port=連接埠 --password

將中文字替換成自己的設定,接著會出現輸入密碼提示,若有特殊字元可能需要使用單引號包住密碼,輸入後即可使用--login-path=設定名稱代替原本的user及password參數。

mysqldump: Got error: 1045: Access denied for user '=root'@'localhost' (using password: YES) when trying to connect
如有此錯誤提示則代表mysql_config_editor設定有需要調整的部分...

文章標籤
全站熱搜
創作者介紹
創作者 低階ㄇㄋ 的頭像
低階ㄇㄋ

蟲匯聚之所

低階ㄇㄋ 發表在 痞客邦 留言(0) 人氣(172)