mysql

mysql> select version();
+-------------------------+
| version() |
+-------------------------+
| 5.1.45-community-log |
+-------------------------+
1 row in set (0.00 sec)
3. 连接到主库创建replication的用户
grant replication slave on *.* to 'rep'@'slave' identified by 'rep';
4. 配置主库 192.168.0.51
cat /etc/my.cnf
[root@slave2 ~]# cat /etc/my.cnf
其他不变,修改Replication Master部分
就三句话
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin.log
# binary logging format - mixed recommended
binlog_format=mixed
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
5. 配置从库192.168.0.50
/etc/my.cnf其他的不变,改变# Replication Slave这部分
# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between # two methods :
Ubuntu上MySQL的Replication配置_IT/计算机_专业资料。Ubuntu上MySQL的Replication配置,实现数据库同步及集群等功能.Ubuntu 上 MySQL 的 Replication 配置 4b3tt0r_at_...
普众互联 MySQL Replocation 配置 SOP VER1.0 MySQL Replication 配置 SOP 操作开始时间: 年月日时分 操作人: 一、验证下面的主数据库服务器的信息完整无误。 ...
Replication( 基本原理及配置) MySQL Replication(Master 与 Slave 基本原理及配置) 的工作原理:(如图及其过程分析) :(如图及其过程分析 1. 主从 mysql server ...
二,mysql replication 的安装和配置 mysql 3.23.15 以后,装 mysql 的时候,就自带有 mysql replication。我四年 前做开发的,那个时候,我接触的 mysql4,如果现在...
MYSQL各种Replication解析 - v0.2_IT/计算机_专业资料。MYSQL各种Replication解析详解MySQL 常见 Replication 解析 一、MySQL 服务器环境的安装配置 二、MySQL 主从 ...
配置Mysql Replication的过程_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 配置Mysql Replication的过程_IT/计算机_专业资料。亲历配置过程,...
看上去MySQL的Replication原理非常简单,总结一下: 每个从仅可以设置一个主。 主在执行sql之后,记录二进制log文件(bin-log) 。 从连接主,并从主获取binlog,存于...
mysql> GRANT REPLICATION SLAVE ON *.* TO 'replication'@'%'192.168.0.2' IDENTIFIED BY 'slavepasswd'; mysql> FLUSH PRIVILEGES; 3、编辑主服务器的配置...
MySQL Replication-主从双备_IT/计算机_专业资料。MySQL Replication-主从双备MySQL Replication, 主从和双主配置 MySQL 的 Replication 是一种多个 MySQL 的数据库...
mysql互为主从Replication_冶金/矿山/地质_工程科技_专业资料。mysql 互为主从 ...mysqld.log pid-file=/var/run/mysqld/mysqld.pid 2、主机B配置文件如下: ...
热门文档