Check Statement for 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.

Updated on: 2020-01-28T10:38:25+05:30

123 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements