{"id":1508,"date":"2014-12-31T23:45:40","date_gmt":"2014-12-31T23:45:40","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1508"},"modified":"2014-12-31T23:45:40","modified_gmt":"2014-12-31T23:45:40","slug":"mysql-database-replication","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/12\/31\/mysql-database-replication\/","title":{"rendered":"Mysql database replication"},"content":{"rendered":"<blockquote class=\"wp-embedded-content\" data-secret=\"7WERlpgXMi\"><p><a href=\"https:\/\/lewiscarr.co.uk\/2013\/07\/moodle-mysql-replication-phpmyadmin\/\">Moodle MySQL Replication using PHPMyAdmin<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Moodle MySQL Replication using PHPMyAdmin&#8221; &#8212; Lewis Carr\" src=\"https:\/\/lewiscarr.co.uk\/2013\/07\/moodle-mysql-replication-phpmyadmin\/embed\/#?secret=7WERlpgXMi\" data-secret=\"7WERlpgXMi\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>The phpMyAdmin that is bundled with cPanel doesn&#8217;t include user management so the following commands needed to be run to give the replication user the correct permissions:<\/p>\n<p>Setting up the Master , add the slave replication user. The IP below is the slave IP.<\/p>\n<p>mysql -e &#8220;GRANT REPLICATION CLIENT ON *.* TO &#8216;user_replicate&#8217;@&#8217;216.xx.xxx.xxx&#8217;;&#8221;<br \/>\nmysql -e &#8220;GRANT REPLICATION SLAVE ON *.* TO &#8216;user_replicate&#8217;@&#8217;216.xx.xxx.xxx&#8217;;<br \/>\nmysql -e &#8220;FLUSH PRIVILEGES;&#8221;<\/p>\n<p>You should now be able to add the user user_replicate under Replication in phpMyAdmin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moodle MySQL Replication using PHPMyAdmin The phpMyAdmin that is bundled with cPanel doesn&#8217;t include user management so the following commands needed to be run to give the replication user the correct permissions: Setting up the Master , add the slave replication user. The IP below is the slave IP. mysql -e &#8220;GRANT REPLICATION CLIENT ON &#8230; <a title=\"Mysql database replication\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/12\/31\/mysql-database-replication\/\" aria-label=\"Read more about Mysql database replication\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[],"class_list":["post-1508","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=1508"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1508\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}