
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How to check statement of creating a particular MySQL database?
With the help of CREATE DATABASE db-name command, we can check the statement of creating any MySQL database.
mysql> SHOW CREATE DATABASE Sample; +----------+-------------------------------------------------------------------+ | Database | Create Database | +----------+-------------------------------------------------------------------+ | sample | CREATE DATABASE `sample` /*!40100 DEFAULT CHARACTER SET latin1 */ | +----------+-------------------------------------------------------------------+ 1 row in set (0.00 sec)
The output shows how MySQL database named Sample has been created.
- Related Articles
- How to check table status of the tables in a particular MySQL database?
- How can we check the default character sets of a particular MySQL database?
- How Can I check the size of the tables in a particular MySQL database?
- Creating and Using a MySQL Database
- Creating and Selecting a MySQL Database
- How can we check the character set of all the tables in a particular MySQL database?
- How to check if a MySQL database exists?
- How can I check MySQL tables from a database in accordance with particular\ncolumn/s name?
- How can I check the character set of all the tables along with column names in a particular MySQL database?
- Get a list of non-empty tables in a particular MySQL database?
- How to find and replace string in MySQL database for a particular string only?
- How can we see the list of views stored in a particular MySQL database?
- How can I get the information about a particular column of a table by MySQL EXPLAIN statement?\nEXPLAIN statement?
- Fix ERROR 1064 (42000) while creating a database in MySQL?
- How to check an empty table already in a MySQL database?

Advertisements