摘要: 转载:https://tyoung.me/2016/09/use_dsn_method_to_connect_and_check_replicas_when_using_pt table checksum/ 问题 在使用pt table checksum配置主从校验的时候,本地和生产环境都可以正常校 阅读全文
posted @ 2018-03-15 18:28 clown_x 阅读(1772) 评论(0) 推荐(0) 编辑
摘要: 参考博客:http://blog.csdn.net/garcon1986/article/details/5337336 1、报错:Error 'Cannot add or update a child row: a foreign key constraint fails ( .`xentry f 阅读全文
posted @ 2018-02-27 17:00 clown_x 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: 1.1 报错 [root@b23 mysql] /etc/init.d/mysql restart MySQL server PID file could not be found! [FAILED] Starting MySQL................................... 阅读全文
posted @ 2018-02-23 10:23 clown_x 阅读(4545) 评论(0) 推荐(0) 编辑
摘要: mysql主从同步错误解决和Slave_IO_Running: NO 一: Slave I/O: error connecting to master 'backup@192.168.1.x:3306' retry time: 60 retries: 86400, Error_code: 1045 阅读全文
posted @ 2018-02-12 16:17 clown_x 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 架构图 一. 两台机器都要配置 1.配置server id并开启bin log功能 [root@linux node1 ~] grep '^[a Z]' /etc/my.cnf datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock serve 阅读全文
posted @ 2018-02-11 18:44 clown_x 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 查看数据库版本 mysql V 查看数据库引擎 show engines; 查看数据库server_id show variables like "server_id"; 查看数据库log bin show variables like "log_bin"; 查看数据库正在执行的完整SQL语句 sh 阅读全文
posted @ 2018-02-09 14:37 clown_x 阅读(111) 评论(0) 推荐(0) 编辑
摘要: mx_kol mx_kol_django 备份这俩库 ===================================== mkdir p /disk3/backup/incremental mkdir p /disk3/backup/gzip mkdir p /disk3/backup/ta 阅读全文
posted @ 2018-02-09 14:36 clown_x 阅读(106) 评论(0) 推荐(0) 编辑
摘要: PostgreSQL是一种关系型数据库管理系统 (RDBMS) 配置文件目录 /var/lib/pgsql/9.3/data 配置文件 [root@b11 data] grep '^listen ' postgresql.conf listen_addresses = ' ' what IP add 阅读全文
posted @ 2018-02-09 14:35 clown_x 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1.1 数据库主从搭建 主:b6 port 3306 IP:192.168.241.6 从:b11 port 3306 IP:192.168.241.11 1.1.1 主库设置server id 并开启binlog功能 B6 mysql show variables like "server_id" 阅读全文
posted @ 2018-02-09 14:32 clown_x 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 参考博客 http://www.cnblogs.com/xxsl/p/6525378.html 1.1 开原版安装包下载 [root@b8 ~ ] wget http://dl.cnezsoft.com/zentao/9.0.1/ZenTaoPMS.9.0.1.zbox_64.tar.gz 1.2 阅读全文
posted @ 2018-02-09 14:31 clown_x 阅读(194) 评论(0) 推荐(0) 编辑