设为首页 加入收藏

TOP

mysqldump: Error: Binlogging on server not active
2017-08-19 10:24:31 】 浏览:3430
Tags:mysqldump: Error: Binlogging 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


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇MySQL的日志管理 下一篇mysqldump: Got error: 1290及sec..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目