2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
經過嘗試,發現只與 mysqlbinlog 的參數使用方式有關係:
--user ${RdsUser} --password ${RdsPass}
這樣的用法有問題,提示輸入密碼即使輸入正確的密碼後依然會提示ERROR: Got error reading packet from server: Could not find first log file name in binary log index file
,正確用法為--user=${RdsUser} --password=${RdsPass}
-u ${RdsUser} -p ${RdsPass}
這樣的用法也一樣會遇到上面的問題,要注意中間的空格,正確用法為-u${RdsUser} -p${RdsPass}
- 上述兩種用法在非交互模式中會提示在命令行中使用密碼不太安全,個人推薦的方法是
export MYSQL_PWD=password_of_rds_user
然後只使用--user=${RdsUser}
來完成。
répondu il y a un mois
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a 4 mois
- demandé il y a 10 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
感謝,經過嘗試我也發現了這個問題。