mysqldump: Error: Binlogging on server not active

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
云数据库 RDS MySQL Serverless,价值2615元额度,1个月
简介:

在学习使用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
相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
7月前
|
关系型数据库 MySQL
MySQL:The server quit without updating PID file
MySQL:The server quit without updating PID file
|
3月前
|
关系型数据库 MySQL 数据库
Host 'XXX' is not allowed to connect to this MySQL server 解决方案
Host 'XXX' is not allowed to connect to this MySQL server 解决方案
|
9月前
|
关系型数据库 MySQL 数据库
成功解决错误1130- Host xxx is not allowed to connect to this MySQL server
成功解决错误1130- Host xxx is not allowed to connect to this MySQL server
|
5月前
【MySQL8】1130 - Host *** is not allowed to connect to this MySOL server
【MySQL8】1130 - Host *** is not allowed to connect to this MySOL server
|
10月前
|
关系型数据库 MySQL 数据库
打开数据库时,出现Can‘t connect to MySQL server on localhost‘ (10061 “Unknown error“)
打开数据库时,出现Can‘t connect to MySQL server on localhost‘ (10061 “Unknown error“)
162 0
|
关系型数据库 MySQL 数据安全/隐私保护
Host is not allowed to connect to this MySQL server解决方法
Host is not allowed to connect to this MySQL server解决方法
276 0
|
关系型数据库 MySQL Docker
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
126 0
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
|
关系型数据库 MySQL 网络安全
Navicat报错:2003 - Can‘t connect to MySQL server on ‘xxx‘ (10060 “Unknown error“)
Navicat报错:2003 - Can‘t connect to MySQL server on ‘xxx‘ (10060 “Unknown error“)
2538 0
Navicat报错:2003 - Can‘t connect to MySQL server on ‘xxx‘ (10060 “Unknown error“)
|
SQL BI 数据库
SQL Server 2012 The report server cannot open a connection to the report server database
案例环境:        操作系统版本:    Windows Server 2012 R2 Standard        数据库版本  :    SQL SERVER 2012 SP2 案例介绍:         今天进入一台新安装的SQL Server服务器的Reporting S...
1357 0
|
关系型数据库 MySQL Linux
MySQL启动报:[ERROR] The server quit without updating PID file
修改配置后MySQL启动不了,报错: [root@localhost mysql]# service mysql restart Starting MySQL...[ERROR] The server quit without updating PID file (/usr/local/mysql/data/mysqld.pid). 看见这个不要惊慌,先把刚才修改的配置注释掉,看是不是配置有误!大部分是手误造成。
4344 0