{"id":724,"date":"2013-01-17T17:19:33","date_gmt":"2013-01-17T08:19:33","guid":{"rendered":"http:\/\/apollo89.com\/wordpress\/?p=724"},"modified":"2013-02-21T12:12:18","modified_gmt":"2013-02-21T03:12:18","slug":"mysql-%ec%9d%b4%ec%a0%84","status":"publish","type":"post","link":"https:\/\/apollo89.com\/wordpress\/?p=724","title":{"rendered":"mysql replication \uad6c\uc131"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>mysql replication \uad6c\uc131<\/p>\n<p>1. mysql rpm \uc124\uce58<br \/>\nmysql  \ud648\ud398\uc774\uc9c0\uc5d0\uc11c \ucd5c\uc2e0\ubc84\uc804 \ub2e4\uc6b4\ub85c\ub4dc<br \/>\nhttp:\/\/www.mysql.com\/downloads\/mysql\/<br \/>\nMySQL Community Server 5.5.20 &#8211; Linux &#8211; Generic<br \/>\n\uc6b0\ub9ac\uac00 \ud544\uc694\ud55c Client Utilities\uc640 MySQL Server\ub97c \ubc1b\ub294\ub2e4.<br \/>\n(MySQL-client-5.5.20-1.linux2.6.x86_64.rpm, MySQL-server-5.5.20-1.linux2.6.x86_64.rpm)<\/p>\n<p>Master\uc5d0 Mysql rpm\uc73c\ub85c \uc124\uce58<\/p>\n<pre class=\"lang:default decode:true \" >Master]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm\r\nPreparing...                ########################################### [100%]\r\n   1:MySQL-server           ########################################### [100%]\r\n...\r\nMaster]# rpm -ivh MySQL-client-5.5.20-1.linux2.6.x86_64.rpm\r\nPreparing...                ########################################### [100%]\r\n   1:MySQL-client           ########################################### [100%]\r\n<\/pre>\n<p>Slave\uc5d0 Mysql rpm\uc73c\ub85c \uc124\uce58<\/p>\n<pre class=\"lang:default decode:true \" >Slave]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm\r\nerror: Failed dependencies:\r\n        MySQL conflicts with mysql-5.0.95-1.el5_7.1.x86_64\r\n        MySQL conflicts with mysql-5.0.95-1.el5_7.1.i386\r\n<\/pre>\n<p>\ud750\ubbf8.. dependencies \ub54c\ubb38\uc5d0 \uc124\uce58\uac00 \uc548\ub428,,\u3160\u314d\u3160<\/p>\n<p>\uc774\ubbf8 \uc124\uce58\ub41c mysql \ud655\uc778\ud558\uace0 remove..<\/p>\n<pre class=\"lang:default decode:true \" >Slave]# yum list installed |grep mysql\r\nmysql.i386                               5.0.95-1.el5_7.1              installed\r\nmysql.x86_64                             5.0.95-1.el5_7.1              installed\r\nmysql-devel.i386                         5.0.95-1.el5_7.1              installed\r\nmysql-devel.x86_64                       5.0.95-1.el5_7.1              installed\r\nSlave]# yum remove mysql*\r\n...\r\nRemoved:\r\n  mysql.i386 0:5.0.95-1.el5_7.1           mysql.x86_64 0:5.0.95-1.el5_7.1           mysql-devel.i386 0:5.0.95-1.el5_7.1           mysql-devel.x86_64 0:5.0.95-1.el5_7.1\r\n\r\nComplete!\r\n<\/pre>\n<p>\uc790, \ub2e4\uc2dc \uc124\uce58 \uc2dc\ub3c4.<\/p>\n<pre class=\"lang:default decode:true \" >Slave]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm\r\nPreparing...                ########################################### [100%]\r\n   1:MySQL-server           ########################################### [100%]\r\n...\r\nSlave]# rpm -ivh MySQL-client-5.5.20-1.linux2.6.x86_64.rpm\r\nPreparing...                ########################################### [100%]\r\n   1:MySQL-client           ########################################### [100%]\r\n<\/pre>\n<p>my.conf \uc0dd\uc131<\/p>\n<pre class=\"lang:default decode:true \" >Master]# cp \/usr\/share\/mysql\/my-innodb-heavy-4G.cnf \/etc\/my.cnf\r\nSlave]# cp \/usr\/share\/mysql\/my-innodb-heavy-4G.cnf \/etc\/my.cnf\r\n<\/pre>\n<p>mysql replication\uc744 \uc704\ud55c \uc124\uc815<\/p>\n<p>\ucc38\uace0\ub85c A &#8212;> B \uc740 A\uc124\uc815\uc744 B\uc73c\ub85c \ubcc0\uacbd<br \/>\n&#8212;> B \ub294 B\ub77c\uc778 \ucd94\uac00<\/p>\n<p>Master my.cnf \uc218\uc815<\/p>\n<pre class=\"lang:default decode:true \" >Master]# vi \/etc\/my.cnf\r\n...\r\n---&gt; datadir               = \/data1\/mysql \r\n\r\nmax_connections = 100 ---&gt; max_connections = 300\r\ntable_open_cache = 2048 ---&gt; table_open_cache = 2048\r\nbinlog_cache_size = 1M ---&gt; binlog_cache_size = 2M\r\ndefault-storage-engine = MYISAM ---&gt; default-storage-engine = INNODB\r\nbulk_insert_buffer_size = 64M ---&gt; bulk_insert_buffer_size = 16M\r\nmyisam_sort_buffer_size = 128M ---&gt; myisam_sort_buffer_size = 64M\r\ninnodb_buffer_pool_size = 2G ---&gt; innodb_buffer_pool_size = 3G\r\n#innodb_data_home_dir = &lt;directory&gt; ---&gt; innodb_data_home_dir = \/data1\/mysql\/\r\ninnodb_write_io_threads = 8 ---&gt; innodb_write_io_threads = 4\r\ninnodb_read_io_threads = 8 ---&gt; innodb_read_io_threads = 4\r\ninnodb_thread_concurrency = 16 ---&gt; innodb_thread_concurrency = 8\r\ninnodb_flush_log_at_trx_commit = 1 ---&gt; innodb_flush_log_at_trx_commit = 2\r\n#innodb_log_group_home_dir ---&gt; innodb_log_group_home_dir = \/data1\/mysql\/\r\n\r\n## \ucd94\uac00\ubd80\ubd84\r\n---&gt; binlog_cache_size =  2M      # binlog cache \uc0ac\uc774\uc988\r\n---&gt; max_binlog_size =  500M        # bin\ub85c\uadf8 \ud30c\uc77c \uc0ac\uc774\uc988\r\n---&gt; expire_logs_days = 20           # \ubcf4\uad00\uae30\uac04\r\n---&gt; init_connect=SET collation_connection = utf8_general_ci\r\n---&gt; init_connect=SET NAMES utf8\r\n---&gt; character-set-server=utf8\r\n---&gt; collation-server=utf8_general_ci\r\n---&gt; default-character-set=utf8\r\n...\r\nMaster]# mkdir \/data1\/mysql\r\nMaster]# chown -R mysql.mysql \/data1\/mysql\r\n<\/pre>\n<p>mysql_install_db \uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589<\/p>\n<pre class=\"lang:default decode:true \" >Master]# mysql_install_db --user=mysql\r\nInstalling MySQL system tables...\r\nOK\r\nFilling help tables...\r\nOK\r\n...\r\n<\/pre>\n<p>Master Mysql \uad6c\ub3d9<\/p>\n<pre class=\"lang:default decode:true \" >Master]# \/usr\/bin\/mysqld_safe &amp;\r\nMaster]# ps -ef |grep mysql\r\nroot     13019  9307  0 16:10 pts\/0    00:00:00 \/bin\/sh \/usr\/bin\/mysqld_safe\r\nmysql    13812 13019  4 16:10 pts\/0    00:00:00 \/usr\/sbin\/mysqld --basedir=\/usr --datadir=\/data1\/mysql --plugin-dir=\/usr\/lib64\/mysql\/plugin --user=mysql --log-error=\/data1\/mysql\/master.err --open-files-limit=8192 --pid-file=\/data1\/mysql\/master.pid --socket=\/var\/lib\/mysql\/mysql.sock --port=3306\r\nroot     13833  9307  0 16:10 pts\/0    00:00:00 grep mysql<\/pre>\n<p>Mysql\uc5d0 \uc811\uc18d\ud574\uc11c Master \uc758 \uc0c1\ud0dc \ud655\uc778<\/p>\n<pre class=\"lang:default decode:true \" >Master]# mysql -u root -p\r\nEnter password:\r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 1\r\nServer version: 5.5.20-log MySQL Community Server (GPL)\r\n\r\nCopyright (c) 2000, 2011, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt;\r\nmysql&gt; show master status;\r\n+------------------+----------+--------------+------------------+\r\n| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |\r\n+------------------+----------+--------------+------------------+\r\n| mysql-bin.000004 |      107 |              |                  |\r\n+------------------+----------+--------------+------------------+\r\n1 row in set (0.00 sec)\r\n\r\nmysql&gt;<\/pre>\n<p>Mysql Slave \uac00 replication \uc218\ud589\uc744 \uc704\ud574 \uc811\uc18d\ud560 \uacc4\uc815 \uc0dd\uc131<br \/>\nmaster\uc5d0\uc11c \uacc4\uc815\uc0dd\uc131<\/p>\n<pre class=\"lang:default decode:true \" >mysql&gt; GRANT REPLICATION SLAVE ON *.* TO 'repl'@'slave-ip' IDENTIFIED BY 'slavepass';\r\nQuery OK, 0 rows affected (0.00 sec)\r\n<\/pre>\n<p>Slave my.cnf \uc218\uc815<\/p>\n<pre class=\"lang:default decode:true \" >Slave]# vi \/etc\/my.cnf\r\n...\r\n---&gt; slave-skip-errors = 1062\r\n---&gt; binlog-ignore-db = mysql\r\n---&gt; binlog-ignore-db = test\r\n---&gt; binlog-ignore-db = davidoff\r\n\r\n---&gt; datadir               = \/data1\/mysql\r\n\r\ntable_open_cache = 2048 ---&gt; table_open_cache = 256\r\n\r\nquery_cache_size = 64M ---&gt; query_cache_size = 16M\r\ndefault-storage-engine = MYISAM ---&gt; default-storage-engine = INNODB\r\n\r\ntmp_table_size = 64M ---&gt; tmp_table_size = 16M\r\n\r\nserver-id = 1 ---&gt; server-id = 2\r\n#master-host = &lt;hostname&gt; ---&gt; # master-host =\r\n#master-user = &lt;username&gt; ---&gt; # master-user = repluser\r\n#master-password = &lt;password&gt; ---&gt; # master-password =\r\n\r\nkey_buffer_size = 32M ---&gt; key_buffer_size = 16M\r\nbulk_insert_buffer_size = 64M ---&gt; bulk_insert_buffer_size = 16M\r\nmyisam_sort_buffer_size = 128M ---&gt; myisam_sort_buffer_size = 64M\r\ninnodb_buffer_pool_size = 2G ---&gt; innodb_buffer_pool_size = 500M\r\n#innodb_data_home_dir = &lt;directory&gt; ---&gt; innodb_data_home_dir = \/data1\/mysql\/\r\ninnodb_write_io_threads = 8 ---&gt; #innodb_write_io_threads = 8  \r\ninnodb_read_io_threads = 8 ---&gt; #innodb_read_io_threads = 8 \r\n--- &gt; innodb_file_io_threads = 8\r\n\r\n## \ucd94\uac00\ubd80\ubd84\r\n---&gt; binlog_cache_size =  2M      # binlog cache \uc0ac\uc774\uc988\r\n---&gt; max_binlog_size =  500M        # bin\ub85c\uadf8 \ud30c\uc77c \uc0ac\uc774\uc988\r\n\r\n---&gt; init_connect=SET collation_connection = utf8_general_ci\r\n---&gt; init_connect=SET NAMES utf8\r\n---&gt; character-set-server=utf8\r\n---&gt; collation-server=utf8_general_ci\r\nmax_allowed_packet = 16M ---&gt; max_allowed_packet = 64M\r\n---&gt; default-character-set=utf8\r\nkey_buffer_size = 512M ---&gt; key_buffer_size = 128M\r\nsort_buffer_size = 512M ---&gt; sort_buffer_size = 128M\r\n...\r\nSlave]# mkdir \/data1\/mysql\r\nSlave]# chown -R mysql.mysql \/data1\/mysql\r\n<\/pre>\n<p>Slave Mysql \uad6c\ub3d9 <\/p>\n<pre class=\"lang:default decode:true \" >Slave]# \/usr\/bin\/mysqld_safe &amp;<\/pre>\n<p>Replication \uc124\uc815\uc744 \ud558\uae30\uc804\uc5d0 Master\uc5d0\uc11c Table Lock<\/p>\n<pre class=\"lang:default decode:true \" >mysql&gt; FLUSH TABLES WITH READ LOCK;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nmysql&gt; SHOW MASTER STATUS;\r\n+------------------+----------+--------------+------------------+\r\n| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |\r\n+------------------+----------+--------------+------------------+\r\n| mysql-bin.000004 |      264 |              |                  |\r\n+------------------+----------+--------------+------------------+\r\n1 row in set (0.00 sec)\r\n<\/pre>\n<p>Slave\uc7a5\ube44\uc5d0\uc11c Replication\uc744 \uc704\ud55c Slave \uad6c\ub3d9<\/p>\n<pre class=\"lang:default decode:true \" >Slave]# mysql -u root -p\r\nEnter password:\r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 1\r\nServer version: 5.5.20-log MySQL Community Server (GPL)\r\n\r\nCopyright (c) 2000, 2011, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt; change master to master_host='master-ip', master_user='repl', master_port=3306, master_password='', master_log_file='mysql-bin.000004', master_log_pos=630;\r\nQuery OK, 0 rows affected (0.01 sec)\r\n\r\nmysql&gt; START SLAVE;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nmysql&gt;\r\n\r\nmysql&gt; show slave status\\G\r\n*************************** 1. row ***************************\r\n               Slave_IO_State: Connecting to master\r\n                  Master_Host: master-ip\r\n                  Master_User: repl\r\n                  Master_Port: 3306\r\n                Connect_Retry: 60\r\n              Master_Log_File: mysql-bin.000004\r\n          Read_Master_Log_Pos: 630\r\n               Relay_Log_File: master-relay-bin.000001\r\n                Relay_Log_Pos: 4\r\n        Relay_Master_Log_File: mysql-bin.000004\r\n             Slave_IO_Running: Connecting\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: 630\r\n              Relay_Log_Space: 107\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: NULL\r\nMaster_SSL_Verify_Server_Cert: No\r\n                Last_IO_Errno: 1045\r\n                Last_IO_Error: error connecting to master 'repl@master-ip:3306' - retry-time: 60  retries: 86400\r\n               Last_SQL_Errno: 0\r\n               Last_SQL_Error:\r\n  Replicate_Ignore_Server_Ids:\r\n             Master_Server_Id: 0\r\n1 row in set (0.00 sec)\r\n\r\nmysql&gt;\r\n<\/pre>\n<p>Master\uc758 lock\uc744 \ud480\uc5b4\uc90c <\/p>\n<pre class=\"lang:default decode:true \" >mysql&gt; UNLOCK TABLES;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n<\/pre>\n<p>* Replication \uccb4\ud06c \uc0ac\ud56d<br \/>\n\ub3d9\uae30\ud654<br \/>\n&#8211; Master Server\uc758 Position \uacfc Slave Server\uc758 Read_Master_Log_Pos \uac12\uc774 \ub3d9\uc77c\ud574\uc57c \ud55c\ub2e4.<br \/>\n  (Slave Server\uc758 Read_Master_Log_Pos \uac12\uacfc Exec_Master_Log_Pos \uac12\ub3c4 \ub3d9\uc77c \ud574\uc57c\ud55c\ub2e4)<br \/>\n&#8211; Slave Server\uc758 Slave_IO_Running \uacfc Slave_SQL_Running \uac12\uc774 \ubaa8\ub450 Yes \uc774\uc5b4\uc57c \ud55c\ub2e4. (\ubc84\uc804\uc5d0 \ub530\ub77c \uceec\ub7fc\uc774 \ub2e4\ub978\ub4ef)<br \/>\n&#8211; Slave Server\uc5d0\uc11c Pos \uac12\uc774 \ubcc0\ud558\ub294\uc9c0 \ud655\uc778.<br \/>\n&#8211; Master Server\uc5d0 \ud14c\uc774\ube14\uc744 \ub9cc\ub4e4\uc5b4\ubcf4\uace0 insert \ud574\ubcf4\uace0 \ub3d9\uae30\ud654\uac00 \ub418\ub294\uc9c0 \ud655\uc778.<\/p>\n<p>\ub300\uae30<br \/>\n&#8211; Slave Server\uc758 Seconds_Behind_Master \uac12\uc774 \ud06c\uba74 \ud074\uc218\ub85d \uc9c0\uc5f0 \ub418\uace0 \uc788\ub2e4\ub294 \ub73b.<\/p>\n<p>replication\uc774 \uc815\uc0c1\uc801\uc73c\ub85c \ub3d9\uc791\ud558\ub294\uc9c0 \ud655\uc778<\/p>\n<p>Master\uc5d0\uc11c \uc0c8\ub85c\uc6b4 DB\uc640 table\uc744 \uc0dd\uc131<\/p>\n<pre class=\"lang:default decode:true \" >mysql&gt; create database apollo89;\r\nQuery OK, 1 row affected (0.00 sec)\r\n\r\nmysql&gt; CREATE TABLE IF NOT EXISTS `apollo89`.`TBL_test` (\r\n  `ID` INT NOT NULL AUTO_INCREMENT COMMENT '',\r\n  `DIVISION` VARCHAR(30) NOT NULL COMMENT '',\r\n  `NAME` VARCHAR(30) NOT NULL COMMENT '',\r\n  PRIMARY KEY (`ID`)\r\n);\r\n\r\nmysql> insert into TBL_test values ('','1','a');\r\nQuery OK, 1 row affected, 1 warning (0.00 sec)\r\n<\/pre>\n<p>Master\uc5d0\uc11c position \ud655\uc778<\/p>\n<pre class=\"lang:default decode:true \" >mysql&gt; SHOW MASTER STATUS;\r\n+------------------+----------+--------------+------------------+\r\n| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |\r\n+------------------+----------+--------------+------------------+\r\n| mysql-bin.000004 |     1835 |              |                  |\r\n+------------------+----------+--------------+------------------+\r\n1 row in set (0.00 sec)\r\n<\/pre>\n<p>slave \uc5d0\uc11c Read_Master_Log_Pos \ud655\uc778<\/p>\n<pre class=\"lang:default decode:true \" >mysql&gt; show slave status\\G\r\n*************************** 1. row ***************************\r\n               Slave_IO_State: Waiting for master to send event\r\n                  Master_Host: master-ip\r\n                  Master_User: repl\r\n                  Master_Port: 3306\r\n                Connect_Retry: 60\r\n              Master_Log_File: mysql-bin.000004\r\n          Read_Master_Log_Pos: 1835\r\n               Relay_Log_File: slave-relay-bin.000002\r\n                Relay_Log_Pos: 1458\r\n        Relay_Master_Log_File: mysql-bin.000004\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: 1835\r\n              Relay_Log_Space: 1616\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\n  Replicate_Ignore_Server_Ids:\r\n             Master_Server_Id: 1\r\n1 row in set (0.00 sec)\r\n\r\nmysql&gt;\r\n<\/pre>\n<p>Master\uc758 postion\uacfc Slave\uc758 Read_Master_Log_Pos\uc774 \ub3d9\uc77c\ud558\ub2e4!!<\/p>\n<p>\ucc38\uace0<br \/>\nhttp:\/\/www.mysqlkorea.co.kr\/sub.html?mcode=manual&#038;scode=01_1&#038;m_no=22382&#038;cat1=753&#038;cat2=0&#038;cat3=0&#038;lang=k<br \/>\nhttp:\/\/shonm.tistory.com\/435<br \/>\nhttp:\/\/ksewookk.blog.me\/100169519921<br \/>\nhttp:\/\/gr8.kr\/120066131409?Redirect=Log&#038;from=postView<br \/>\nhttp:\/\/yupmin.com\/entry\/mysql_replication<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; mysql replication \uad6c\uc131 1. mysql rpm \uc124\uce58 mysql \ud648\ud398\uc774\uc9c0\uc5d0\uc11c \ucd5c\uc2e0\ubc84\uc804 \ub2e4\uc6b4\ub85c\ub4dc http:\/\/www.mysql.com\/downloads\/mysql\/ MySQL Community Server 5.5.20 &#8211; Linux &#8211; Generic \uc6b0\ub9ac\uac00 \ud544\uc694\ud55c Client Utilities\uc640 MySQL Server\ub97c \ubc1b\ub294\ub2e4. (MySQL-client-5.5.20-1.linux2.6.x86_64.rpm, MySQL-server-5.5.20-1.linux2.6.x86_64.rpm) Master\uc5d0 Mysql rpm\uc73c\ub85c \uc124\uce58 Master]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm Preparing&#8230; ########################################### &hellip; <a href=\"https:\/\/apollo89.com\/wordpress\/?p=724\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[685],"tags":[90,690,41],"class_list":["post-724","post","type-post","status-publish","format-standard","hentry","category-database-","tag-mysql","tag-replication","tag-41"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>mysql replication \uad6c\uc131 - Apollo89.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/apollo89.com\/wordpress\/?p=724\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mysql replication \uad6c\uc131 - Apollo89.com\" \/>\n<meta property=\"og:description\" content=\"&nbsp; mysql replication \uad6c\uc131 1. mysql rpm \uc124\uce58 mysql \ud648\ud398\uc774\uc9c0\uc5d0\uc11c \ucd5c\uc2e0\ubc84\uc804 \ub2e4\uc6b4\ub85c\ub4dc http:\/\/www.mysql.com\/downloads\/mysql\/ MySQL Community Server 5.5.20 &#8211; Linux &#8211; Generic \uc6b0\ub9ac\uac00 \ud544\uc694\ud55c Client Utilities\uc640 MySQL Server\ub97c \ubc1b\ub294\ub2e4. (MySQL-client-5.5.20-1.linux2.6.x86_64.rpm, MySQL-server-5.5.20-1.linux2.6.x86_64.rpm) Master\uc5d0 Mysql rpm\uc73c\ub85c \uc124\uce58 Master]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm Preparing... ########################################### &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/apollo89.com\/wordpress\/?p=724\" \/>\n<meta property=\"og:site_name\" content=\"Apollo89.com\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-17T08:19:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-21T03:12:18+00:00\" \/>\n<meta name=\"author\" content=\"apollo89\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"apollo89\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"8\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724\"},\"author\":{\"name\":\"apollo89\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"headline\":\"mysql replication \uad6c\uc131\",\"datePublished\":\"2013-01-17T08:19:33+00:00\",\"dateModified\":\"2013-02-21T03:12:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724\"},\"wordCount\":186,\"commentCount\":2,\"keywords\":[\"mysql\",\"replication\",\"\uc124\uce58\"],\"articleSection\":[\"Database\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724\",\"name\":\"mysql replication \uad6c\uc131 - Apollo89.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\"},\"datePublished\":\"2013-01-17T08:19:33+00:00\",\"dateModified\":\"2013-02-21T03:12:18+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=724#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/apollo89.com\\\/wordpress\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mysql replication \uad6c\uc131\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/\",\"name\":\"Apollo89.com\",\"description\":\"\uc544\ud3f4\ub85c\uc528\uc758 \uc7a1\ub2e4\ud55c \uacbd\ud5d8\ub4e4..\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\",\"name\":\"apollo89\",\"description\":\"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"mysql replication \uad6c\uc131 - Apollo89.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/apollo89.com\/wordpress\/?p=724","og_locale":"ko_KR","og_type":"article","og_title":"mysql replication \uad6c\uc131 - Apollo89.com","og_description":"&nbsp; mysql replication \uad6c\uc131 1. mysql rpm \uc124\uce58 mysql \ud648\ud398\uc774\uc9c0\uc5d0\uc11c \ucd5c\uc2e0\ubc84\uc804 \ub2e4\uc6b4\ub85c\ub4dc http:\/\/www.mysql.com\/downloads\/mysql\/ MySQL Community Server 5.5.20 &#8211; Linux &#8211; Generic \uc6b0\ub9ac\uac00 \ud544\uc694\ud55c Client Utilities\uc640 MySQL Server\ub97c \ubc1b\ub294\ub2e4. (MySQL-client-5.5.20-1.linux2.6.x86_64.rpm, MySQL-server-5.5.20-1.linux2.6.x86_64.rpm) Master\uc5d0 Mysql rpm\uc73c\ub85c \uc124\uce58 Master]# rpm -ivh MySQL-server-5.5.20-1.linux2.6.x86_64.rpm Preparing... ########################################### &hellip; Continue reading &rarr;","og_url":"https:\/\/apollo89.com\/wordpress\/?p=724","og_site_name":"Apollo89.com","article_published_time":"2013-01-17T08:19:33+00:00","article_modified_time":"2013-02-21T03:12:18+00:00","author":"apollo89","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"apollo89","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"8\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/apollo89.com\/wordpress\/?p=724#article","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=724"},"author":{"name":"apollo89","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"headline":"mysql replication \uad6c\uc131","datePublished":"2013-01-17T08:19:33+00:00","dateModified":"2013-02-21T03:12:18+00:00","mainEntityOfPage":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=724"},"wordCount":186,"commentCount":2,"keywords":["mysql","replication","\uc124\uce58"],"articleSection":["Database"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/apollo89.com\/wordpress\/?p=724#respond"]}]},{"@type":"WebPage","@id":"https:\/\/apollo89.com\/wordpress\/?p=724","url":"https:\/\/apollo89.com\/wordpress\/?p=724","name":"mysql replication \uad6c\uc131 - Apollo89.com","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/#website"},"datePublished":"2013-01-17T08:19:33+00:00","dateModified":"2013-02-21T03:12:18+00:00","author":{"@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"breadcrumb":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=724#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/apollo89.com\/wordpress\/?p=724"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/apollo89.com\/wordpress\/?p=724#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/apollo89.com\/wordpress"},{"@type":"ListItem","position":2,"name":"mysql replication \uad6c\uc131"}]},{"@type":"WebSite","@id":"https:\/\/apollo89.com\/wordpress\/#website","url":"https:\/\/apollo89.com\/wordpress\/","name":"Apollo89.com","description":"\uc544\ud3f4\ub85c\uc528\uc758 \uc7a1\ub2e4\ud55c \uacbd\ud5d8\ub4e4..","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/apollo89.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82","name":"apollo89","description":"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.","url":"https:\/\/apollo89.com\/wordpress\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=724"}],"version-history":[{"count":0,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/724\/revisions"}],"wp:attachment":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}