問題:
I would like to know the command to perform a mysqldump of a database without the prompt for the password.我想知道在不提示輸入密碼的情況下執行數據庫 mysqldump 的命令。
REASON: I would like to run a cron job, which takes a mysqldump of the database once everyday.原因:我想運行一個 cron 作業,它每天對數據庫進行一次 mysqldump。 Therefore, I won't be able to insert the password when prompted.因此,我將無法在出現提示時插入密碼。
How could I solve this ?我怎麼能解決這個問題?
解決方案:
參考一: https://en.stackoom.com/question/czXm參考二: https://stackoom.com/question/czXm