mysql 主从设置
2014-04-17 17:41
141 查看
导出mysqldump --single-transaction --skip-opt --create-option -F --master-data=2 -q -B -uroot game_release > game_rel0726.sql
数据库game_release,用户名密码:game/!123456'
db上设置
grant replication slave,replication client on *.* to game@'114.238.171.12' identified by '!123456';
dr上设置
create database game_release;
grant all privileges on game_release.* to game@'114.238.171.12' identified by '!123456';
mysql -uroot game_release --default-character-set=latin1 < game_release0722.sql
grant all privileges on game_release.* to game@'114.238.171.12' identified by '!123456';
FLUSH PRIVILEGES;
change master to master_host='114.238.171.12', master_user='game', master_password='!123456', master_log_file='mysql-bin.000039', master_log_pos=107;
FLUSH PRIVILEGES;
START SLAVE;
本文出自 “漫漫长路” 博客,请务必保留此出处http://ithelp.blog.51cto.com/4501237/1397395
数据库game_release,用户名密码:game/!123456'
db上设置
grant replication slave,replication client on *.* to game@'114.238.171.12' identified by '!123456';
dr上设置
create database game_release;
grant all privileges on game_release.* to game@'114.238.171.12' identified by '!123456';
mysql -uroot game_release --default-character-set=latin1 < game_release0722.sql
grant all privileges on game_release.* to game@'114.238.171.12' identified by '!123456';
FLUSH PRIVILEGES;
change master to master_host='114.238.171.12', master_user='game', master_password='!123456', master_log_file='mysql-bin.000039', master_log_pos=107;
FLUSH PRIVILEGES;
START SLAVE;
本文出自 “漫漫长路” 博客,请务必保留此出处http://ithelp.blog.51cto.com/4501237/1397395
相关文章推荐
- MySql5.5以上版本设置主从结构的例子
- mysql服务器主从服务器设置
- MySQL与MariaDB的主从数据复制设置步骤
- 新设置mysql主从机,MySQL主从失败 错误Got fatal error 1236
- mysql 5.7.9 docker 主从设置简易搭建
- 同机MySQL主从同步设置
- 转:简单的Mysql主从复制设置
- 设置Mysql的主从复制的主要用途
- mysql主从同步设置
- [置顶] MySQL 5.7主从复制从零开始设置及全面详解——实现多线程并行同步,解决主从复制延迟问题!
- mysql数据库备份设置延时备份方法(mysql主从配置)
- MySQL主从同步设置和同步错误处理
- MySQL主从同步设置和同步错误处理(经典)
- MySQL主从设置
- Mysql5.5 两台服务器互为主从同步设置
- centos下MySQL主从服务器设置
- windows下mysql主从备份设置
- mysql5.6基于GTID主从复制设置
- MySQL主从复制简单设置
- mysql5.7-主从设置