摘要: 主库开启主库binlog和server_idvim /etc/my.cnf[mysqld]log-bin=/var/lib/mysql/mysql-binserver_id=1systemctl restart mysql添加同步账号mysql> grant repl... 阅读全文
posted @ 2018-07-26 14:11 Testder探索者 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 配置zabbix-agent安装percona插件yum -y install http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm... 阅读全文
posted @ 2018-07-26 14:02 Testder探索者 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 设置终端显示的行数 记录操作日志 阅读全文
posted @ 2018-07-26 13:52 Testder探索者 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 安装inotifyyum -y install inotify-tools写同步脚本Path=/dataIP=172.16.100.20/usr/bin/inotfywait -mrq --format '%w%f' -e close_write,delete $Pa... 阅读全文
posted @ 2018-07-26 13:44 Testder探索者 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 丛库复制停止,进丛库查看,报错1007,数据库已存在,不能创建数据库mysql> show slave status\G;Slave_IO_Running: YesSlave_SQL_Running: No Last_Errno: 1007Last_Error: Er... 阅读全文
posted @ 2018-07-26 13:42 Testder探索者 阅读(258) 评论(0) 推荐(0) 编辑