Get the App
SLTechnology News&Howtos  ›  Database  › 

How to export table structure in mysql database

Shulou Source: shulou.com Published: 2022-05-31 18:57:54 11月14日 Update

This article is to share with you about how to derive the table structure in the mysql database, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Export of mysql structure

The specific usage on the command line is as follows:

Dump-u uses username-p password-d database name table name > script name

Export the entire database structure and data

Mysqldump-h localhost-uroot-p123456 database > dump.sql

Export a single data table structure and data

Mysqldump-h localhost-uroot-p123456 database table > dump.sql

Www.2cto.com

Export the entire database structure (without data)

/ usr/local/mysql/bin/mysqldump-uroot-d entrym > dump.sql

Export a single data table structure (without data)

Mysqldump-h localhost-uroot-p123456-d database table > dump.sql

The above is how to derive the table structure in the mysql database. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Data structure database single datasheet more knowledge article utility command password that is work meeting article look knowledge point script industry details information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Microsoft Docker Apple Redmi