{"id":23741,"date":"2020-02-07T20:32:53","date_gmt":"2020-02-07T13:32:53","guid":{"rendered":"http:\/\/tom.ji42.com\/?p=23741"},"modified":"2020-02-07T20:32:53","modified_gmt":"2020-02-07T13:32:53","slug":"replication-%e0%b8%82%e0%b8%ad%e0%b8%87-mysql","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=23741","title":{"rendered":"Replication \u0e02\u0e2d\u0e07 MySQL"},"content":{"rendered":"<article>\n<div>\n<section class=\"cu cv cw cx cy\">\n<div class=\"n p\">\n<div class=\"ac ae af ag ah cz aj ak\">\n<p id=\"35f0\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e27\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e01\u0e32\u0e23 Replication \u0e02\u0e2d\u0e07 MySQL \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23 replicate \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 (database) \u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e31\u0e01 (Master) \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2a\u0e33\u0e23\u0e2d\u0e07 (Slave) \u0e44\u0e14\u0e49<\/p>\n<p id=\"7682\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 Replication \u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e31\u0e01 (Master) \u0e44\u0e21\u0e48\u0e27\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 INSERT, UPDATE, DELETE \u0e2b\u0e23\u0e37\u0e2d \u0e41\u0e01\u0e49\u0e44\u0e02 table \u0e01\u0e32\u0e23\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07\u0e19\u0e35\u0e49\u0e08\u0e30\u0e16\u0e39\u0e01\u0e2a\u0e48\u0e07\u0e15\u0e48\u0e2d (replicate) \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2a\u0e33\u0e23\u0e2d\u0e07 (Slave) \u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34<\/p>\n<p id=\"6424\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e01\u0e32\u0e23\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 Replication \u0e2a\u0e48\u0e27\u0e19\u0e43\u0e2b\u0e0d\u0e48\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 \u0e17\u0e33\u0e40\u0e1e\u0e37\u0e2d\u0e01\u0e23\u0e30\u0e08\u0e32\u0e22\u0e42\u0e2b\u0e25\u0e14\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e31\u0e01 \u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23 Select \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e42\u0e14\u0e22\u0e18\u0e23\u0e23\u0e21\u0e0a\u0e2a\u0e15\u0e34\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e32\u0e21\u0e31\u0e01\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23 Select \u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23 INSERT, UPDATE, DELETE \u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e08\u0e38\u0e14 \u0e19\u0e35\u0e49 \u0e15\u0e49\u0e2d\u0e07\u0e40\u0e02\u0e35\u0e22\u0e19\u0e43\u0e2b\u0e49\u0e15\u0e31\u0e27\u0e0b\u0e2d\u0e1f\u0e41\u0e27\u0e23\u0e4c\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e23\u0e31\u0e1a\u0e23\u0e39\u0e49\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e41\u0e22\u0e01\u0e01\u0e32\u0e23 Select \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22\u0e19\u0e48\u0e30\u0e04\u0e23\u0e31\u0e1a<!--more--><\/p>\n<p id=\"b5d3\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">1 \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e23\u0e08\u0e33\u0e43\u0e2a\u0e48\u0e43\u0e08 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e21\u0e32\u0e01 Slave \u0e15\u0e49\u0e2d\u0e07\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e44\u0e1b\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e48\u0e32 INSERT, UPDATE, DELETE \u0e19\u0e48\u0e30\u0e04\u0e23\u0e31\u0e1a\u0e44\u0e21\u0e48\u0e07\u0e31\u0e49\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e30\u0e40\u0e1e\u0e35\u0e49\u0e22\u0e19\u0e44\u0e21\u0e48\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e31\u0e01\u0e40\u0e25\u0e22\u0e17\u0e35\u0e40\u0e14\u0e35\u0e22\u0e27<\/p>\n<p id=\"e02d\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">2 \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e23\u0e08\u0e33\u0e2a\u0e2d\u0e07 Replication \u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 \u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e2b\u0e25\u0e31\u0e07\u0e15\u0e25\u0e2d\u0e14\u0e40\u0e27\u0e25\u0e32\u0e43\u0e2b\u0e49 \u0e15\u0e31\u0e27 Slave \u0e21\u0e31\u0e19\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2b\u0e21\u0e37\u0e48\u0e2d\u0e19\u0e15\u0e31\u0e27\u0e41\u0e23\u0e01 \u0e44\u0e21\u0e48\u0e43\u0e0a\u0e49\u0e01\u0e32\u0e23\u0e41\u0e1a\u0e25\u0e4a\u0e04\u0e2d\u0e31\u0e1e\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e48\u0e30\u0e04\u0e23\u0e31\u0e1a\u0e40\u0e01\u0e34\u0e14\u0e44\u0e1b\u0e17\u0e33\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48 db \u0e15\u0e31\u0e27\u0e2b\u0e25\u0e31\u0e01\u0e40\u0e2a\u0e35\u0e22\u0e2b\u0e32\u0e22\u0e40\u0e0a\u0e48\u0e19\u0e44\u0e1b\u0e25\u0e1a Slave \u0e01\u0e47 \u0e15\u0e32\u0e21\u0e44\u0e1b\u0e40\u0e2b\u0e21\u0e37\u0e48\u0e2d\u0e19\u0e01\u0e31\u0e19<\/p>\n<h2 id=\"acc6\" class=\"ga gb dc bk bj gc gd ge gf gg gh gi gj gk gl gm gn\" data-selectable-paragraph=\"\">\u0e23\u0e30\u0e1a\u0e1a\u0e17\u0e14\u0e2a\u0e2d\u0e1a<\/h2>\n<p id=\"fecf\" class=\"fm fn dc bk fo b fp go fr gp ft gq fv gr fx gs fz cu\" data-selectable-paragraph=\"\">\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e08\u0e30\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2a\u0e2d\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e17\u0e35\u0e48\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 CentOS 6.9 \u0e41\u0e25\u0e30 MySQL 5.1.73 \u0e17\u0e35\u0e48\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e1c\u0e48\u0e32\u0e19 Yum \u0e15\u0e32\u0e21\u0e1b\u0e01\u0e15\u0e34<\/p>\n<p id=\"bce3\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u00a0<strong class=\"fo gt\">Master<\/strong><\/p>\n<ul class=\"\">\n<li id=\"fc29\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz gu gv gw\" data-selectable-paragraph=\"\">ip: 192.168.1.1<\/li>\n<li id=\"12bb\" class=\"fm fn dc bk fo b fp gx fr gy ft gz fv ha fx hb fz gu gv gw\" data-selectable-paragraph=\"\">hostname: dba-mas<\/li>\n<\/ul>\n<p id=\"6d5a\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u00a0<strong class=\"fo gt\">Slave<\/strong><\/p>\n<ul class=\"\">\n<li id=\"309b\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz gu gv gw\" data-selectable-paragraph=\"\">ip: 192.168.1.2<\/li>\n<li id=\"38fb\" class=\"fm fn dc bk fo b fp gx fr gy ft gz fv ha fx hb fz gu gv gw\" data-selectable-paragraph=\"\">hostname: dba-slv<\/li>\n<\/ul>\n<p id=\"a185\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e2b\u0e21\u0e32\u0e22\u0e40\u0e2b\u0e15\u0e38<\/p>\n<p id=\"f19f\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">yum install mysql-server \u0e17\u0e31\u0e49\u0e07\u0e2a\u0e2d\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e19\u0e48\u0e30\u0e04\u0e23\u0e31\u0e1a\u0e16\u0e49\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e17\u0e33\u0e23\u0e30\u0e1a\u0e1a\u0e43\u0e2b\u0e21\u0e48 \u0e46<\/p>\n<p id=\"fe3c\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e17\u0e31\u0e49\u0e07\u0e2a\u0e2d\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e15\u0e49\u0e2d\u0e07 \u0e44\u0e21\u0e48\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e40\u0e17\u0e48\u0e32 \u0e46 \u0e41\u0e25\u0e30 \u0e40\u0e2b\u0e21\u0e37\u0e48\u0e2d\u0e19 \u0e46 \u0e01\u0e31\u0e19<\/p>\n<p id=\"4a7d\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e16\u0e49\u0e32 \u0e08\u0e30\u0e40\u0e1e\u0e34\u0e48\u0e21 slave \u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01 \u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e40\u0e14\u0e34\u0e21\u0e21\u0e35\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e2b\u0e49 mysqldump \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e08\u0e32\u0e01 master \u0e21\u0e32 slave \u0e43\u0e2b\u0e49\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e17\u0e31\u0e49\u0e07\u0e2a\u0e2d\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e15\u0e23\u0e07\u0e01\u0e31\u0e19\u0e40\u0e1b\u0e4a\u0e30 \u0e46 \u0e15\u0e23\u0e07\u0e19\u0e35\u0e49\u0e41\u0e19\u0e30\u0e19\u0e33\u0e27\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e1b\u0e34\u0e14\u0e01\u0e32\u0e23\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 master \u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e1b\u0e19\u0e48\u0e30 sync \u0e40\u0e2a\u0e23\u0e47\u0e08\u0e04\u0e48\u0e2d\u0e22\u0e40\u0e1b\u0e34\u0e14<\/p>\n<h2 id=\"225d\" class=\"ga gb dc bk bj gc gd ge gf gg gh gi gj gk gl gm gn\" data-selectable-paragraph=\"\">\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 MASTER \u2014 \u0e2a\u0e23\u0e49\u0e32\u0e07 USER \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a REPLICATION<\/h2>\n<p id=\"e360\" class=\"fm fn dc bk fo b fp go fr gp ft gq fv gr fx gs fz cu\" data-selectable-paragraph=\"\">\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19 \u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07 user \u0e02\u0e2d\u0e07 MySQL \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2d\u0e19\u0e38\u0e0d\u0e32\u0e15\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33 \u2018REPLICATION\u2019 \u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave \u0e04\u0e37\u0e2d\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e2a\u0e34\u0e17\u0e30\u0e4c \u0e43\u0e2b\u0e49\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e2d\u0e48\u0e32\u0e19\u0e44\u0e14\u0e49\u0e19\u0e31\u0e48\u0e19\u0e41\u0e2b\u0e25\u0e30 \u0e2b\u0e25\u0e31\u0e01\u0e01\u0e32\u0e23\u0e04\u0e37\u0e2d\u0e21\u0e31\u0e19\u0e08\u0e30\u0e27\u0e34\u0e48\u0e07\u0e44\u0e1b\u0e2d\u0e48\u0e32\u0e19\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27\u0e17\u0e33\u0e01\u0e32\u0e23 insert \u0e40\u0e02\u0e49\u0e32\u0e15\u0e31\u0e27\u0e21\u0e31\u0e19\u0e40\u0e2d\u0e07<\/p>\n<p id=\"702b\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 user \u0e0a\u0e37\u0e48\u0e2d \u2018repl\u2019 \u0e41\u0e25\u0e30\u0e23\u0e2b\u0e31\u0e2a \u2018repl1234\u2019\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e01\u0e32\u0e23\u0e17\u0e33 REPLICATION \u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e17\u0e35\u0e48\u0e21\u0e35 ip 192.168.1.2<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"8058\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-mas ~]# <strong class=\"hk gt\">mysql -u root -p<\/strong><\/span><span id=\"6fa2\" class=\"ga gb dc bk hk b eg ho hp hq hr hs hm r hn\" data-selectable-paragraph=\"\">mysql&gt; <strong class=\"hk gt\">GRANT REPLICATION SLAVE ON *.* TO 'repl'@'192.168.1.2' IDENTIFIED BY 'repl1234';<\/strong><\/span><\/pre>\n<h2 id=\"eee4\" class=\"ga gb dc bk bj gc gd ge gf gg gh gi gj gk gl gm gn\" data-selectable-paragraph=\"\">\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 MASTER \u2014 \u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 REPLICATION MASTER<\/h2>\n<p id=\"532e\" class=\"fm fn dc bk fo b fp go fr gp ft gq fv gr fx gs fz cu\" data-selectable-paragraph=\"\">\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master \u0e1b\u0e34\u0e14\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e27\u0e34\u0e2a MySQL \u0e41\u0e25\u0e49\u0e27\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e1f\u0e25\u0e4c \/etc\/my.cnf \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e1b\u0e34\u0e14\u0e04\u0e38\u0e13\u0e2a\u0e21\u0e1a\u0e31\u0e15\u0e34 binary log (log-bin) \u0e41\u0e25\u0e30\u0e40\u0e0b\u0e47\u0e15 server-id<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"30ac\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-mas ~]# <strong class=\"hk gt\">service mysql stop\r\n<\/strong>Shutting down MySQL..                                      [  OK  ]<\/span><\/pre>\n<p id=\"2602\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e1f\u0e25\u0e4c\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 \/etc\/my.cnf \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01\u0e40\u0e1b\u0e47\u0e19 Replication Master<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"4ce1\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-mas ~]# <strong class=\"hk gt\">cat \/etc\/my.cnf\r\n<\/strong>[mysqld]\r\nlog-bin=mysql-bin\r\nserver-id=1<\/span><\/pre>\n<p id=\"f7d5\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 service \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e31\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e27\u0e34\u0e2a MySQL<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"b91c\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-mas ~]# <strong class=\"hk gt\">service mysql start\r\n<\/strong>Starting MySQL.                                            [  OK  ]<\/span><\/pre>\n<h2 id=\"c3b8\" class=\"ga gb dc bk bj gc gd ge gf gg gh gi gj gk gl gm gn\" data-selectable-paragraph=\"\">\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 MASTER \u2014 \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e2a\u0e16\u0e32\u0e19\u0e30\u0e02\u0e2d\u0e07 MASTER BINARY LOG<\/h2>\n<p id=\"b340\" class=\"fm fn dc bk fo b fp go fr gp ft gq fv gr fx gs fz cu\" data-selectable-paragraph=\"\">\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master \u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 SHOW MASTER STATUS \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e2a\u0e16\u0e32\u0e19\u0e30\u0e02\u0e2d\u0e07 Master Binary Log<\/p>\n<p id=\"0382\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e40\u0e23\u0e32\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e04\u0e48\u0e32 \u2018File\u2019 \u0e41\u0e25\u0e30 \u2018Position\u2019 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e30\u0e1a\u0e38\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"7ee3\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-mas ~]# <strong class=\"hk gt\">mysql -u root -p<\/strong><\/span><span id=\"070b\" class=\"ga gb dc bk hk b eg ho hp hq hr hs hm r hn\" data-selectable-paragraph=\"\">mysql&gt; <strong class=\"hk gt\">SHOW MASTER STATUS;\r\n<\/strong>+------------------+----------+--------------+------------------+\r\n| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |\r\n+------------------+----------+--------------+------------------+\r\n| <strong class=\"hk gt\">mysql-bin.000001<\/strong> |      <strong class=\"hk gt\">224 <\/strong>|              |                  |\r\n+------------------+----------+--------------+------------------+\r\n1 row in set (0.00 sec)<\/span><\/pre>\n<h2 id=\"7cc1\" class=\"ga gb dc bk bj gc gd ge gf gg gh gi gj gk gl gm gn\" data-selectable-paragraph=\"\">\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 SLAVE \u2014 \u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 REPLICATION SLAVE<\/h2>\n<p id=\"a4fa\" class=\"fm fn dc bk fo b fp go fr gp ft gq fv gr fx gs fz cu\" data-selectable-paragraph=\"\">\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave \u0e1b\u0e34\u0e14\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e27\u0e34\u0e2a MySQL \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e41\u0e01\u0e49\u0e44\u0e02\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01\u0e44\u0e1f\u0e25\u0e4c \/etc\/my.cnf<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"c803\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-slv ~]# <strong class=\"hk gt\">service mysql stop\r\n<\/strong>Shutting down MySQL..                                      [  OK  ]<\/span><\/pre>\n<p id=\"54c3\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave \u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01\u0e41\u0e04\u0e48 \u2018server-id\u2019 \u0e17\u0e35\u0e48\u0e21\u0e35\u0e04\u0e48\u0e32\u0e41\u0e15\u0e01\u0e15\u0e48\u0e32\u0e07\u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master<\/p>\n<p id=\"c861\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e16\u0e49\u0e32\u0e17\u0e33 slave \u0e2b\u0e25\u0e32\u0e22 \u0e46 \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 \u0e01\u0e47\u0e40\u0e23\u0e35\u0e22\u0e07\u0e40\u0e25\u0e02 server-i d \u0e44\u0e1b\u0e04\u0e23\u0e31\u0e1a\u0e2d\u0e22\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e40\u0e25\u0e02\u0e0a\u0e19\u0e01\u0e31\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e1e\u0e2d<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"8165\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-slv ~]# <strong class=\"hk gt\">cat \/etc\/my.cnf\r\n<\/strong>[mysqld]\r\nserver-id=2<\/span><\/pre>\n<p id=\"1a3d\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e23\u0e31\u0e19\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e27\u0e34\u0e2a MySQL \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"f9e7\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-slv ~]# <strong class=\"hk gt\">service mysql start\r\n<\/strong>Starting MySQL.                                            [  OK  ]<\/span><\/pre>\n<p id=\"4407\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 CHANGE MASTER \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e30\u0e1a\u0e38 ip \u0e02\u0e2d\u0e07 Master \u0e0a\u0e37\u0e48\u0e2d user, password \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e01\u0e32\u0e23\u0e17\u0e33 Replication \u0e41\u0e25\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e38\u0e04\u0e48\u0e32 log_file (File) \u0e41\u0e25\u0e30 log_pos (Position) \u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e43\u0e19\u0e01\u0e32\u0e23\u0e23\u0e31\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 SHOW MASTER STATUS \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"b8d7\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">mysql&gt; <strong class=\"hk gt\">CHANGE MASTER TO MASTER_HOST='192.168.1.1',\r\n                        MASTER_USER='repl',\r\n                        MASTER_PASSWORD='repl1234',\r\n                        MASTER_LOG_FILE='mysql-bin.000001',\r\n                        MASTER_LOG_POS=224;\r\n<\/strong>Query OK, 0 rows affected (0.03 sec)<\/span><\/pre>\n<p id=\"ff53\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e23\u0e31\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 START SLAVE \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33 Replicate \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01 \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"ecf9\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">mysql&gt; <strong class=\"hk gt\">START SLAVE;\r\n<\/strong>Query OK, 0 rows affected (0.00 sec)<\/span><\/pre>\n<p id=\"bf8f\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e2a\u0e16\u0e32\u0e19\u0e30 Replication \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"5d29\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">mysql&gt; <strong class=\"hk gt\">SHOW SLAVE STATUS \\G\r\n<\/strong>*************************** 1. row ***************************\r\n               Slave_IO_State: Waiting for master to send event\r\n                  Master_Host: 192.168.1.1\r\n                  Master_User: repl\r\n                  Master_Port: 3306\r\n                Connect_Retry: 60\r\n              Master_Log_File: mysql-bin.000001\r\n          Read_Master_Log_Pos: 244\r\n               Relay_Log_File: dba-slv-relay-bin.000004\r\n                Relay_Log_Pos: 251\r\n        Relay_Master_Log_File: mysql-bin.000001\r\n             Slave_IO_Running: Yes\r\n            Slave_SQL_Running: Yes\r\n              Replicate_Do_DB:\r\n          Replicate_Ignore_DB:\r\n           Replicate_Do_Table:\r\n       Replicate_Ignore_Table:\r\n      Replicate_Wild_Do_Table:\r\n  Replicate_Wild_Ignore_Table:\r\n                   Last_Errno: 0\r\n                   Last_Error:\r\n                 Skip_Counter: 0\r\n          Exec_Master_Log_Pos: 244\r\n              Relay_Log_Space: 411\r\n              Until_Condition: None\r\n               Until_Log_File:\r\n                Until_Log_Pos: 0\r\n           Master_SSL_Allowed: No\r\n           Master_SSL_CA_File:\r\n           Master_SSL_CA_Path:\r\n              Master_SSL_Cert:\r\n            Master_SSL_Cipher:\r\n               Master_SSL_Key:\r\n        Seconds_Behind_Master: 0\r\nMaster_SSL_Verify_Server_Cert: No\r\n                Last_IO_Errno: 0\r\n                Last_IO_Error:\r\n               Last_SQL_Errno: 0\r\n               Last_SQL_Error:\r\n1 row in set (0.00 sec)<\/span><\/pre>\n<p id=\"40e3\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e2b\u0e32\u0e01\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e04\u0e48\u0e32 \u2018Slave_IO_State\u2019 \u0e08\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e40\u0e1b\u0e47\u0e19 \u2018Waiting for master to send event\u2019<\/p>\n<h2 id=\"4bef\" class=\"ga gb dc bk bj gc gd ge gf gg gh gi gj gk gl gm gn\" data-selectable-paragraph=\"\">\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23 REPLICATION<\/h2>\n<p id=\"9f60\" class=\"fm fn dc bk fo b fp go fr gp ft gq fv gr fx gs fz cu\" data-selectable-paragraph=\"\">\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"cd2f\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-mas ~]# <strong class=\"hk gt\">mysql -u root -p<\/strong>\r\nmysql&gt; <strong class=\"hk gt\">CREATE DATABASE test1;\r\n<\/strong>Query OK, 1 row affected (0.01 sec)<\/span><span id=\"35c4\" class=\"ga gb dc bk hk b eg ho hp hq hr hs hm r hn\" data-selectable-paragraph=\"\">mysql&gt; <strong class=\"hk gt\">SHOW DATABASES;\r\n<\/strong>+--------------------+\r\n| Database           |\r\n+--------------------+\r\n| information_schema |\r\n| mysql              |\r\n| test1              |\r\n+--------------------+\r\n3 rows in set (0.00 sec)<\/span><\/pre>\n<p id=\"161e\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 database \u0e08\u0e30\u0e16\u0e39\u0e01\u0e2a\u0e48\u0e07\u0e15\u0e48\u0e2d (replicate) \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave \u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"536e\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-slv ~]# <strong class=\"hk gt\">mysql -u root -p\r\n<\/strong>Enter password:\r\nmysql&gt; <strong class=\"hk gt\">SHOW DATABASES;\r\n<\/strong>+--------------------+\r\n| Database           |\r\n+--------------------+\r\n| information_schema |\r\n| mysql              |\r\n| test1              |\r\n+--------------------+\r\n3 rows in set (0.00 sec)<\/span><\/pre>\n<p id=\"11a2\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e2a\u0e23\u0e49\u0e32\u0e07 table \u0e41\u0e25\u0e30\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23 INSERT \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"7b12\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-mas ~]# <strong class=\"hk gt\">mysql -u root -p<\/strong>\r\nmysql&gt; use test;<strong class=\"hk gt\">\r\n<\/strong>mysql&gt; <strong class=\"hk gt\">CREATE TABLE books (id INTEGER, name VARCHAR(255));\r\n<\/strong>mysql&gt; <strong class=\"hk gt\">INSERT INTO books VALUES (1, 'data1');\r\n<\/strong>mysql&gt; <strong class=\"hk gt\">INSERT INTO books VALUES (2, 'data2');<\/strong><\/span><span id=\"cbf6\" class=\"ga gb dc bk hk b eg ho hp hq hr hs hm r hn\" data-selectable-paragraph=\"\">mysql&gt; <strong class=\"hk gt\">SELECT * FROM books;\r\n<\/strong>+------+-----------------+\r\n| id   | name            |\r\n+------+-----------------+\r\n|    1 | data1  |\r\n|    2 | data2  |\r\n+------+-----------------+\r\n2 rows in set (0.00 sec)<\/span><\/pre>\n<p id=\"9fb0\" class=\"fm fn dc bk fo b fp fq fr fs ft fu fv fw fx fy fz cu\" data-selectable-paragraph=\"\">\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master \u0e08\u0e30\u0e16\u0e39\u0e01 replicate \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave \u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34<\/p>\n<pre class=\"hc hd he hf hg hh hi hj\"><span id=\"a925\" class=\"ga gb dc bk hk b eg hl hm r hn\" data-selectable-paragraph=\"\">[root@dba-slv ~]# <strong class=\"hk gt\">mysql -u root -p<\/strong>\r\nmysql&gt; use test;<strong class=\"hk gt\">\r\n<\/strong>mysql&gt; <strong class=\"hk gt\">SELECT * FROM books;\r\n<\/strong>+------+-----------------+\r\n| id   | name            |\r\n+------+-----------------+\r\n|    1 | data1  |\r\n|    2 | data2  |\r\n+------+-----------------+\r\n2 rows in set (0.00 sec)<\/span><\/pre>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/article>\n<p>&nbsp;<\/p>\n<div class=\"kw ct hu s ak ib hz ic\" data-test-id=\"post-sidebar\">\n<div class=\"n p\">\n<div class=\"ac ae af ag ah ai aj ak\">\n<div class=\"id n co\">\n<div class=\"mr\">\n<div class=\"ie if ig n\">\n<div class=\"n o\">\n<div class=\"ih r ii\"><\/div>\n<div class=\"it r\">\n<div class=\"iu\">\n<h4 class=\"bj ef eg bl bo\"><\/h4>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"kw mr hu s hv hw hx hy hz ia\"><\/div>\n<div>\n<div class=\"iv iw n co p\">\n<div class=\"n p\">\n<div class=\"ac ae af ag ah cz aj ak\">\n<div class=\"n ix\"><\/div>\n<div class=\"n o ix\"><\/div>\n<div class=\"iy r\"><\/div>\n<div class=\"iz n dv ab\">\n<div class=\"n o\">\n<div class=\"ja r ii\">\n<div class=\"c jb dz n o jc ii jd je jf jg jh ji jj jk jl jm jn jo jp jq\">\n<div class=\"ba ij ik il im in jr ip o js dz n p jt u ju cp t ak iq ir is jv\"><\/div>\n<\/div>\n<\/div>\n<div class=\"it r\">\n<div class=\"iu\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0e27\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e01\u0e32\u0e23 Replication \u0e02\u0e2d\u0e07 MySQL \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23 replicate \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 (database) \u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e31\u0e01 (Master) \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2a\u0e33\u0e23\u0e2d\u0e07 (Slave) \u0e44\u0e14\u0e49 \u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 Replication \u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e31\u0e01 (Master) \u0e44\u0e21\u0e48\u0e27\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 INSERT, UPDATE, DELETE \u0e2b\u0e23\u0e37\u0e2d \u0e41\u0e01\u0e49\u0e44\u0e02 table \u0e01\u0e32\u0e23\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07\u0e19\u0e35\u0e49\u0e08\u0e30\u0e16\u0e39\u0e01\u0e2a\u0e48\u0e07\u0e15\u0e48\u0e2d (replicate) \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2a\u0e33\u0e23\u0e2d\u0e07 (Slave) \u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e01\u0e32\u0e23\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 Replication \u0e2a\u0e48\u0e27\u0e19\u0e43\u0e2b\u0e0d\u0e48\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 \u0e17\u0e33\u0e40\u0e1e\u0e37\u0e2d\u0e01\u0e23\u0e30\u0e08\u0e32\u0e22\u0e42\u0e2b\u0e25\u0e14\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e31\u0e01 \u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23 Select \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e42\u0e14\u0e22\u0e18\u0e23\u0e23\u0e21\u0e0a\u0e2a\u0e15\u0e34\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e32\u0e21\u0e31\u0e01\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e14\u0e49\u0e32\u0e19\u0e01\u0e32\u0e23 Select \u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23 INSERT, UPDATE, DELETE \u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e08\u0e38\u0e14 \u0e19\u0e35\u0e49 \u0e15\u0e49\u0e2d\u0e07\u0e40\u0e02\u0e35\u0e22\u0e19\u0e43\u0e2b\u0e49\u0e15\u0e31\u0e27\u0e0b\u0e2d\u0e1f\u0e41\u0e27\u0e23\u0e4c\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e23\u0e31\u0e1a\u0e23\u0e39\u0e49\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e41\u0e22\u0e01\u0e01\u0e32\u0e23 Select \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22\u0e19\u0e48\u0e30\u0e04\u0e23\u0e31\u0e1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-23741","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6cOVM-6aV","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/23741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23741"}],"version-history":[{"count":1,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/23741\/revisions"}],"predecessor-version":[{"id":23742,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/23741\/revisions\/23742"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}