JAVA、PHP、前端、APP、网站开发 - 开发技术学习

文档标签: mysql数据同步

mysql数据同步错误:Relay log read failure的处理.

前一段时间在同事的电脑上配置了数据库同步的功能。 运行了大概半个月后出现了如下错误: 输入的命令是:show slave status\G; [php] Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 1594 Last_SQL_Error: Relay log read failure: Could not parse relay lo event entry. The possible reasons are: the master's binary log is corrupted (y u can check this by running 'mysqlbinlog' on the binary log), ...

mysql数据库主从数据同步操作演示步骤.

由于公司的一些软件操作数据库比较平凡,但主要是查询操作,反应时间过长,导致公司很多员工的工作效率一直提不上去!于是想到了数据库的同步,查询就查询本地的数据库,添加就添加到主数据库上去! 这样在局域网查询起来应该速度要快很多! 下面来看一下具体的操作步骤: 1、配置远程数据库即主数据库: 登录Master服务器,编辑my.cnf #vim /etc/my.cnf 在[mysqld]段添加以下内容: [mysqld] log-bin=mysql-bin server-id=1 binlog-do-db=extmail binlog-ignore-db=mysql,test 解释:log-bin项是让Master服务器记录二进制日志这个是必须的; server-id=master_id 其中master_id必须为1到232–1之间的一个正整数值; binlog-do-db=database 是要记录日志的数据库; binlog-ignore-db 是不要记录日志的数据库名,多个数据库中间用逗号(,)隔...
此文被围观3062次  分类: 数据库 标签:  ·····

站点声明:部分内容源自互联网,为传播信息之用,如有侵权,请联系我们删除。

© Copyright 2011-2024 www.kfju.com. All Rights Reserved.
超级字帖 版权所有。蜀ICP备12031064号