Error ‘Can’t create database ‘zhangfei’; database exists’ on query.

    Read

接上篇,上次错误原因是由于用户或者密码错误,此次模拟另外一个错误。


报错内容:“Error 'Can't create database 'zhangfei'; database exists' on query. Default database: 'zhangfei'. Query: 'create database zhangfei'”,由于从库已经有了一个叫zhangfei的数据库,而主库又建立了一个叫zhangfei的数据库,由此导致的错误。
修复方式一:

修复方式二:

slave-skip-errors = 1032,1062,1007 #错误代码说明SourceByrd's Weblog-https://note.t4x.org/error/cant-create-database/

申明:本文由BYRD原创(基于Mysql5.6.16),未经许可禁止转载!SourceByrd's Weblog-https://note.t4x.org/error/cant-create-database/

参考:http://dev.mysql.com/doc/refman/5.0/en/set-global-sql-slave-skip-counter.htmlSourceByrd's Weblog-https://note.t4x.org/error/cant-create-database/ SourceByrd's Weblog-https://note.t4x.org/error/cant-create-database/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on July 12, 2014
  • 原文链接:https://note.t4x.org/error/cant-create-database/
匿名

Comment

Anonymous

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: