ERROR 1007 (HY000) at line 29: Can‘t create database ‘qz‘; database exists
Posted TaKe___Easy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1007 (HY000) at line 29: Can‘t create database ‘qz‘; database exists相关的知识,希望对你有一定的参考价值。
问题
[root@localhost ~]# mysqlbinlog --no-defaults /usr/local/mysql/data/mysql-bin.000001 | mysql -uroot -p5514
1.mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1007 (HY000) at line 29: Can't create database 'qz'; database exists
解决方案
【因为数据库存在,所以需要把数据库里对应的库也删除,因为该二进制文件里面记录的是从创建库的那一步开始,所以不删除库会导致步骤重复,从而报错】
Can't create database 'qz'; database exists:无法创建数据库'qz';
以上是关于ERROR 1007 (HY000) at line 29: Can‘t create database ‘qz‘; database exists的主要内容,如果未能解决你的问题,请参考以下文章
ERROR 23 (HY000) at line 29963: Out of resources when opening file
mysql登陆时出现ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication
主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at lea
mysql恢复和数据导入的问题(ERROR 2006 (HY000) at line 1016: MySQL server has gone away)
ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBA
ERROR 1813 (HY000) at line 404: Tablespace for table '`xxx`.`xxxxx`' exists.