备份管理后台数据报错?
首先在 执行./back_admin_db.sh 报 bad interpreter: No such file or directory 错误
又执行 sudo bash ./back_admin_db.sh
报
mysqldump: Empty value for 'port' specified. Will throw an error in future versions
Using a password on the command line interface can be insecure.
Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect












关于 LearnKu
@景哥哥 @liming 这个问题是因为.sh文件的格式为dos,而Linux只能执行格式为unix格式的脚本。
使用vi打开文件,输入:set ff(注意有冒号)查看,如果格式为dos,则输入:set ff=unix,保存退出再执行就可以了。