mysql数据库同步debug
5页1、mysqlmysql 数据库同步数据库同步 debugdebug数据库的同步一直是个很重要的问题,也是一个难题,所幸 mysql 提供了多种方法可以用来同步在本文中我先给出 mysql 本身自带的方式 master-slave 方式,详尽的步骤如下:1、prepare# 需要修改主、从服务器的 f 文件#1) mastermysql grant replication client,replication slave on *.* to repl192.168.0.* identified by xxxxxx=# 主服务器# Replication Master Server (default)# binary logging is required for replicationlog-bin=/mysql/bin-loglog-bin-index=/mysql/bin-log.index#binlog_cache_size = 1Mbinlog_do_db = test1binlog_do_db = test2#binlog_ignore_db =# required unique
2、 id between 1 and 232 - 1# defaults to 1 if master-host is not set# but will not function as a master if omittedserver-id = 2370=2) slavemysql grant replication client,replication slave on *.* to repl192.168.0.* identified by xxxxxx=# 从服务器# 来运棋牌 http:/# required unique id between 2 and 232 - 1# (and different from the master)# defaults to 2 if master-host is set# but will not function as a slave if omittedserver-id = 2379# The replication master for this slave - requiredmaster-host = 192.168.0.2
3、40# The username the slave will use for authentication when connecting# to the master - requiredmaster-user = repl# The password the slave will authenticate with when connecting to# the master - requiredmaster-password = xxxxxx# The port the master is listening on.# optional - defaults to 3306master-port = 3306# binary logging - not required for slaves, but recommended#log-bin=/mysql/log/slavebin-logmaster-info-file = /mysql/log/master.inforelay-log-info-file = /mysql/log/relay-log.inforeplicate
《mysql数据库同步debug》由会员m****分享,可在线阅读,更多相关《mysql数据库同步debug》请在金锄头文库上搜索。
DB2发生死锁情况时应该怎么处理
Python 为何能成最强编程语言
面试前必须要知道的Redis面试
MySQL下自动删除指定时间以前的记录的操作方法
深入理解FastCGI协议以及在PHP中的实现
MySQL数据库性能优化之硬件瓶颈分析
NoSQL数据库大全收集整理
2018 – 2019 年前端 JavaScript 面试题
PHP文件包含漏洞的形式总结
5种使用Python代码轻松实现数据可视化的方法
改进JavaScript和Bust的互操作性:深入认识wasm-bindgen组件
C#图片缩放平移从功能分析到编码实现
详解网络蜘蛛的安全隐患及预防方法
利用NAP解除安全隐患自动隐藏你的IP地址
解决分布式数据库和离线网络中原子性问题的新方法
bbed恢复数据遇到延迟块清除的问题
Oracle Data Redaction数据加密
linux下du和df结果不一致的原因及处理
基于QMP实现对qemu虚拟机进行交互
解读Java并发队列BlockingQueue
2023-06-30 7页
2022-09-15 93页
2022-06-04 27页
2022-04-25 3页
2022-03-24 7页
2022-03-24 7页
2022-03-24 8页
2022-03-24 4页
2022-03-24 43页
2022-03-24 7页