mysqldump: Error: Binlogging on server not active


在學習使用mysqldump時,使用mysqldump備份時,遇到了下面兩個錯誤:

[root@DB-Server backup]# ./mysql_dump_back.sh

Warning: Using a password on the command line interface can be insecure.

mysqldump: Error: Binlogging on server not active

如上所示,一個是因為我在mysql_dump_back.sh里面配置了登錄數據庫賬號的密碼,mysqldump提示不安全,另外一個錯誤,在搜索了一些資料后,只需要在/etc/my.cnf里面開啟log_bin(數據庫的操作日志)功能,然后重啟mysql即可解決問題。網上也有大把這類資料,既然碰到了也就記錄一下。

clip_image001

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
log_bin=mysql-bin


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM