Last active
May 5, 2021 07:49
-
-
Save codcodog/9b35f39b6ea671d349b429ae156b0346 to your computer and use it in GitHub Desktop.
mysqldump 导出数据库表结构
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 只导出表结构 | |
mysqldump -uroot -p -d DB_NAME | sed 's/ AUTO_INCREMENT=[0-9]*//g' > FILENAME.sql | |
# 导出表结构和数据 | |
mysqldump -uroot -p DB_NAME > FILENAME.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment