Home > Database > Mysql Tutorial > body text

How can I view the statements that created a specific MySQL database?

王林
Release: 2023-09-03 22:33:04
forward
860 people have browsed it

How can I view the statements that created a specific MySQL database?

With the CREATE DATABASE db-name command, we can view the statements that create 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)
Copy after login

The output shows how to create a MySQL database named Sample.

The above is the detailed content of How can I view the statements that created a specific MySQL database?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template