Home > Database > Mysql Tutorial > 如何干净的清除Slave同步信息【小技巧】

如何干净的清除Slave同步信息【小技巧】

WBOY
Release: 2016-06-07 17:41:46
Original
1263 people have browsed it

mysqlshowslavestatus\\G;***************************1.row***************************&nb..

现在由于业务的需要,不需要这台Slave同步复制Master,那么采用reset slave时,你会发现同步信息还存在,香港服务器租用,如:

执行reset slave,其实是把master.info和relay-log.info文件给删除,但里面的同步信息还在,那么可以用这个方法,虚拟主机,香港空间,让其清除的彻彻底底。

注:此语句支持在MySQL5.5或更高版本。

本文出自 “贺春旸的技术专栏” 博客,请务必保留此出处

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template