Home > Database > Mysql Tutorial > body text

SQL 复制订阅 异常后 强制删除

WBOY
Release: 2016-06-07 17:39:37
Original
1122 people have browsed it

最近做数据库同步备份工作,将 主库 通过SQLService 自带的 [复制] 订阅出去后,因为 订阅方(从库) 发生异常,主库 无法确定 从库的订阅,就想清理了,订阅重新做同步,结果。。。。。主库上的发布,不让删除,说 有人订阅,且无法联系从库,于是很是纠结,

最近做数据库同步备份工作,将 主库 通过SQLService 自带的 [复制] 订阅出去后,因为 订阅方(从库) 发生异常,主库 无法确定 从库的订阅,就想清理了,订阅重新做同步,结果。。。。。主库上的发布,不让删除,说 有人订阅,且无法联系从库,于是很是纠结,从库的订阅已经挂了,服务器空间,网站空间,也没了,但是主库却说还存在,不允许删除主库的发布,纠结了,试验了N+1种办法(停库/分离/直接删库),最后都不行,提示 有订阅,不允许删除,最后经过 百度~百度~百度~在百度 最后终于找到个办法,原来可以强制删除 主库的复制发布而不用通知 订阅方(从库),当然语句附上,香港虚拟主机,留作下次使用:

sp_removedbreplication '数据库名'  删除数据库复制/同步问题

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!