{"id":194,"date":"2013-08-06T01:04:16","date_gmt":"2013-08-06T01:04:16","guid":{"rendered":"https:\/\/digitalchild.info\/?p=194"},"modified":"2013-08-06T01:04:16","modified_gmt":"2013-08-06T01:04:16","slug":"remove-a-mysql-replication-slave","status":"publish","type":"post","link":"https:\/\/randomadult.local\/remove-a-mysql-replication-slave\/","title":{"rendered":"Remove A MySQL Replication Slave"},"content":{"rendered":"

There might be a time that you no longer need a MySQL slave in your replication setup. You can remove a mysql replication slave using the following instructions.<\/p>\n

Log in to your mysql slave and make sure that nothing is accessing the slave database.<\/p>\n

Run the following commands.<\/p>\n

\n\nmysql> STOP SLAVE;\n\nmysql> CHANGE MASTER TO MASTER_HOST=' ';\n\nmysql> RESET SLAVE;\n\n<\/pre>\n

Note: There is a space between the apostrophes.\u00a0<\/em><\/p>\n

You will then need to remove the Slave configuration from your mysql configuration file (my.cnf). You will need to comment out or remove any line that has the following:<\/p>\n