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即可解决问题。网上也有大把这类资料,既然碰到了也就记录一下。
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
log_bin=mysql-bin
相关推荐
zhanbuquan 2020-08-15
云之飞踢 2020-08-15
swazerz 2020-07-28
Andrea0 2020-07-04
zjuwangleicn 2020-06-25
景泽元的编程 2020-06-21
txt 2020-06-14
MissFuTT 2020-06-14
chenjiazhu 2020-06-08
vivenwan 2020-06-07
msmysql 2020-06-06
inhumming 2020-06-06
muzirigel 2020-05-27
zjx0 2020-05-19
webliyang 2020-05-14
CoderJiang 2020-04-22
MySQL 2020-04-20
achiverhai 2020-05-08