My Oracle Support Banner

Last_Errno: 1007 Last_Error: Error Can't create database ; database exists on query. (Doc ID 2917388.1)

Last updated on DECEMBER 23, 2022

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.


This error occurs if you try to create a database that exist. You can check to see if the database exists by using the SHOW DATABASES statement.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.