{"id":132,"date":"2017-10-24T05:39:00","date_gmt":"2017-10-24T05:39:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/glpi-mysql-replicate"},"modified":"2017-10-24T11:55:14","modified_gmt":"2017-10-24T11:55:14","slug":"glpi-mysql-replicate","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/glpi\/glpi-mysql-replicate","title":{"rendered":"GLPI Mysql Replication Configuration"},"content":{"rendered":"<p>How to setup MYSql Database replication in GLPI<\/p>\n<div dir=\"ltr\" style=\"text-align: left;\">\n<h2><u><b>GLPI Mysql Replication<\/b><\/u><\/h2>\n<p><b>Login to your secondary Mysql server through console<\/b><br \/>\nCreate database for replication &#8211;\u00a0 glpi_replication<br \/>\n<b>Example : db name = glpi_replication<\/b><b>, username = glpiuser , password &#8211; glpireppwd<\/b><\/p>\n<div><b>#mysql -u root -p ( enter the mysql root password)<\/b><\/div>\n<div>mysql&gt; create database glpi_replication;<\/div>\n<div>mysql&gt; grant all privileges on glpi_replication.* to glpiuser@glpiwebserverip identified by &#8216;glpireppwd&#8217;;<br \/>\nmysql&gt; exit<\/div>\n<p><b>Login to GLPI web as admin<\/b><br \/>\n<b>Go to Setup -&gt; General -&gt;Mysql Replicate<\/b><br \/>\nChange the settings as shown in the below Screen shot<\/p>\n<div><b>Enable The Replica &#8211; yes<\/b><\/div>\n<div>Mysql Server\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; Ip of your slave mysql server<\/div>\n<div>Database\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; slave db name<\/div>\n<div>Mysql user\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211; slave db username<\/div>\n<div>Password\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0 password of slave db<\/div>\n<div>Max difference between master and slave\u00a0 &#8211; your choice<\/div>\n<div>Email Notification &#8211; your choice<\/div>\n<p><b>Click on post<\/b><\/p>\n<p>&nbsp;<\/p>\n<div class=\"separator\" style=\"clear: both; text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"GLPI Mysql Replication \" src=\"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2010\/08\/glpi-mysql-replication.jpg\" alt=\"GLPI Mysql Replication Config\" width=\"640\" height=\"130\" border=\"0\" \/><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to setup MYSql Database replication in GLPI GLPI Mysql Replication Login to your secondary Mysql server through console Create database for replication &#8211;\u00a0 glpi_replication Example : db name =&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/glpi\/glpi-mysql-replicate\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":330,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/132"}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":5,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":774,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/132\/revisions\/774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media\/330"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}