SHOW CREATE DATABASE
SHOW CREATE {DATABASE|SCHEMA} databaseThis statement displays an SQL statement that can be used to
create a database like the one given. This statement is mostly useful
for determining the default character set. It’s available as of
version 4.1 of MySQL. As of version 5.0.2, the keyword
SCHEMA may be used instead of DATABASE:
SHOW CREATE DATABASE human_resources \G
*************************** 1. row ***************************
Database: human_resources
Create Database: CREATE DATABASE `human_resources`
/*!40100 DEFAULT CHARACTER SET latin1 */If you don’t want the database name in the results to be quoted
with backticks as shown here, you can set the server variable
SQL_QUOTE_SHOW_CREATE to 0 instead of its default value of 1.