{"id":8541,"date":"2020-10-28T09:35:00","date_gmt":"2020-10-28T09:35:00","guid":{"rendered":"https:\/\/ubiq.co\/tech-blog\/?p=8541"},"modified":"2025-08-25T04:33:09","modified_gmt":"2025-08-25T04:33:09","slug":"how-to-replicate-mysql-database-to-another-server","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/","title":{"rendered":"How to Replicate MySQL Database to Another Server"},"content":{"rendered":"\n<p>MySQL Replication allows you to easily copy database from one server to another. MySQL supports different kind of replication such as master-slave, master-master and group replication. MariaDB also supports multi-master replication. In this article, we will look Master-Slave replication in MySQL and learn how to replicate MySQL database in Linux. You can use these steps to replicate MySQL database in Ubuntu, Debian, CentOS, Fedora, Red hat and other types of Linux.<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#How_to_Replicate_MySQL_Database\" >How to Replicate MySQL Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#1_Edit_Master_Configuration_file\" >1. Edit Master Configuration file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#2_Create_Replication_User\" >2. Create Replication User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#3_Edit_Slave_Configuration_file\" >3. Edit Slave Configuration file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#4_Initialize_Replication\" >4. Initialize Replication<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Replicate_MySQL_Database\"><\/span>How to Replicate MySQL Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are the steps to replicate MySQL database. For our setup, we will need a master database (IP &#8211; 54.24.32.12) and a slave database (IP &#8211; 45.12.21.23). We will replicate database named <em>exampledb<\/em> from master to slave. We have assumed that you have MySQL installed on both these servers, and you have root privileges for both of them. Else you can install MySQL with following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get install mysql-server mysql-client<\/pre>\n\n\n\n<p><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Edit_Master_Configuration_file\"><\/span>1. Edit Master Configuration file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Open terminal on master database&#8217;s server and run the following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/mysql\/my.cnf<\/pre>\n\n\n\n<p>By default, remote connections are disabled in MySQL. We need to allow remote connection from slave to master for replication. So we uncomment the following two lines to allow remote connections, by adding # at their beginning, as shown below<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#skip-networking\n#bind-address=127.0.0.1<\/pre>\n\n\n\n<p>Add or uncomment the following lines in [mysqld] block to look like the following.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>[mysqld]<\/code>\n<code>server-id=1<\/code>\n<code>log-bin = \/var\/log\/mysql\/mysql-bin.log\nbinlog-do-db=exampledb<\/code><\/pre>\n\n\n\n<p>Let us look at each of the above line. The first line server-id specifies a unique ID number for master. It needs to be a positive number from 1 to 2^32.<\/p>\n\n\n\n<p><em>log-bin<\/em> specifies the log file location that will be populated by MySQL with details of replication.<\/p>\n\n\n\n<p><em>binlog-do-db<\/em> indicates the name of database that needs to be replicated.<\/p>\n\n\n\n<p>Restart MySQL Server to apply changes<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo service mysql restart<\/pre>\n\n\n\n<p>Log into MySQL as root user<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo mysql -u root -p<\/pre>\n\n\n\n<p>and run the following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql&gt; SHOW MASTER STATUS;\n+------------------+----------+--------------+------------------+\n| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |\n+------------------+----------+--------------+------------------+\n| mysql-bin.000001 |      107 |   exampledb  |                  |\n+------------------+----------+--------------+------------------+<\/pre>\n\n\n\n<p>Please note the above details, we will need them later in Step #3.<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Create_Replication_User\"><\/span>2. Create Replication User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Log into MySQL server on master.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo mysql -u root -p<\/pre>\n\n\n\n<p>You will be prompted for root password. <\/p>\n\n\n\n<p>After logging into MySQL, run the following commands to create a remote user <em>slave_user<\/em>, and grant it replication permissions for all databases. Please replace 45.12.21.23 below with your slave server&#8217;s IP, and replace $password with a suitable password as per your requirement.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql&gt; CREATE USER slave_user@<strong>45.12.21.23<\/strong>; \nmysql&gt; GRANT REPLICATION SLAVE ON *.* TO slave_user@<strong>45.12.21.23<\/strong>\n       IDENTIFIED BY '<strong>$password<\/strong>';\nmysql&gt; FLUSH PRIVILEGES;<\/pre>\n\n\n\n<p>Please add an inbound firewall rule for port 3306 and allow 45.12.21.23. This remote user needs to connect to master database for replication to happen.<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Edit_Slave_Configuration_file\"><\/span>3. Edit Slave Configuration file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Open terminal on slave database&#8217;s server and run the following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/mysql\/my.cnf<\/pre>\n\n\n\n<p>Add the following lines under [mysqld] to look like<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[mysqld]\nserver-id = 2\nrelay-log = \/var\/log\/mysql\/mysql-relay-bin.log\nlog_bin = \/var\/log\/mysql\/mysql-bin.log\nbinlog_do_db = exampledb<\/pre>\n\n\n\n<p>In the first line, we assign server ID of 2 to slave server. Next couple of lines specify  locations of relay log and replication log files. Last line specifies the database to be replicated.<\/p>\n\n\n\n<p>Restart MySQL Server and log into MySQL<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo service mysql restart\n$ sudo mysql -u root -p<\/pre>\n\n\n\n<p>Run the following commands to create an empty database on slave.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql&gt; CREATE DATABASE exampledb; \nmysql&gt; USE exampledb;<\/pre>\n\n\n\n<p>Load data from master database to populate slave database<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql&gt; LOAD DATA FROM MASTER;<\/pre>\n\n\n\n<p>Exit MySQL.<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Initialize_Replication\"><\/span>4. Initialize Replication<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>While you are logged into MySQL, run the following commands to initiate replication process. Replace parts in <strong>bold<\/strong> with your values.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql&gt; SLAVE STOP;\nmysql&gt; CHANGE MASTER TO MASTER_HOST='<strong>54.24.32.12<\/strong>',\n       MASTER_USER='<strong>slave_user<\/strong>', \n       MASTER_PASSWORD='&lt;<strong>password<\/strong>&gt;', \n       MASTER_LOG_FILE='<strong>mysql-bin.000001<\/strong>', \n       MASTER_LOG_POS=<strong>107<\/strong>;<\/pre>\n\n\n\n<p>MASTER_HOST &#8211; IP address or hostname of the master (54.24.32.12).<br>MASTER_USER &#8211; slave user we created in step #2.<br>MASTER_PASSWORD &#8211; password of slave user we crated in step #2.<br>MASTER_LOG_FILE &#8211; file MySQL gave back in step #1 when you ran<br>SHOW MASTER STATUS<br>MASTER_LOG_POS &#8211; position MySQL gave back when you ran SHOW MASTER STATUS in step #1<br><\/p>\n\n\n\n<p>Finally, we start the slave to begin replication of MySQL database.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql&gt; START SLAVE;<\/pre>\n\n\n\n<p>Hopefully, this article will help you replicate MySQL database.<\/p>\n\n\n\n<p>Also read:<br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-enable-ssl-tls-for-mysql-in-ubuntu\/\">How to Enable SSL\/TLS for MySQL in Ubuntu<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/copy-table-mysql\/\">How to Copy Table in MySQL<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-duplicate-table-in-mysql\/\">How to Duplicate Table in MySQL<\/a><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL Replication Configuration &#8211; here are the steps to replicate MySQL database to another server. Copy MySQL database from one sever to another.<\/p>\n","protected":false},"author":1,"featured_media":8543,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[324],"tags":[486],"class_list":["post-8541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","tag-mysql-replication"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Replicate MySQL Database to Another Server - Ubiq BI<\/title>\n<meta name=\"description\" content=\"MySQL Replication Configuration - here are the steps to replicate MySQL database to another server. Copy MySQL database from one sever to another.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Replicate MySQL Database to Another Server - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"MySQL Replication Configuration - here are the steps to replicate MySQL database to another server. Copy MySQL database from one sever to another.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-28T09:35:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-25T04:33:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"730\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Replicate MySQL Database to Another Server\",\"datePublished\":\"2020-10-28T09:35:00+00:00\",\"dateModified\":\"2025-08-25T04:33:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/\"},\"wordCount\":594,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1\",\"keywords\":[\"mysql replication\"],\"articleSection\":[\"MySQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/\",\"url\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/\",\"name\":\"How to Replicate MySQL Database to Another Server - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1\",\"datePublished\":\"2020-10-28T09:35:00+00:00\",\"dateModified\":\"2025-08-25T04:33:09+00:00\",\"author\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"MySQL Replication Configuration - here are the steps to replicate MySQL database to another server. Copy MySQL database from one sever to another.\",\"breadcrumb\":{\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1\",\"width\":730,\"height\":410,\"caption\":\"enable mysql replication\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ubiq.co\/tech-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Replicate MySQL Database to Another Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#website\",\"url\":\"https:\/\/ubiq.co\/tech-blog\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/\"],\"url\":\"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Replicate MySQL Database to Another Server - Ubiq BI","description":"MySQL Replication Configuration - here are the steps to replicate MySQL database to another server. Copy MySQL database from one sever to another.","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:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Replicate MySQL Database to Another Server - Ubiq BI","og_description":"MySQL Replication Configuration - here are the steps to replicate MySQL database to another server. Copy MySQL database from one sever to another.","og_url":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-10-28T09:35:00+00:00","article_modified_time":"2025-08-25T04:33:09+00:00","og_image":[{"width":730,"height":410,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp","type":"image\/webp"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Replicate MySQL Database to Another Server","datePublished":"2020-10-28T09:35:00+00:00","dateModified":"2025-08-25T04:33:09+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/"},"wordCount":594,"commentCount":0,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1","keywords":["mysql replication"],"articleSection":["MySQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/","url":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/","name":"How to Replicate MySQL Database to Another Server - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1","datePublished":"2020-10-28T09:35:00+00:00","dateModified":"2025-08-25T04:33:09+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"MySQL Replication Configuration - here are the steps to replicate MySQL database to another server. Copy MySQL database from one sever to another.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1","width":730,"height":410,"caption":"enable mysql replication"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/how-to-replicate-mysql-database-to-another-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Replicate MySQL Database to Another Server"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2025\/06\/enable-mysql-replication.webp?fit=730%2C410&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-2dL","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/8541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=8541"}],"version-history":[{"count":4,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/8541\/revisions"}],"predecessor-version":[{"id":9271,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/8541\/revisions\/9271"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/8543"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=8541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=8541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=8541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}