mysql 表数据转储_在MySQL中仅将表结构转储到文件中
mysql 表數(shù)據(jù)轉(zhuǎn)儲
For this exercise, we will use the mysqldump utility the same as if we were backing up the entire database.
在本練習(xí)中,我們將像備份整個數(shù)據(jù)庫一樣使用mysqldump實用程序。
Syntax:
句法:
mysqldump -d -h localhost -u root -pmypassword databasename > dumpfile.sql
mysqldump -d -h localhost -u root -pmypassword數(shù)據(jù)庫名> dumpfile.sql
The only option that is different than creating an entire backup is the -d switch, which tells mysqldump not to output the data.
與創(chuàng)建整個備份不同的唯一選項是-d開關(guān),它告訴mysqldump不要輸出數(shù)據(jù)。
Example:
例:
mysqldump -d?-h localhost -u root -p2Uad7as9 database01 > dumpfile.sql
mysqldump -d -h localhost -u根-p2Uad7as9 database01> dumpfile.sql
翻譯自: https://www.howtogeek.com/howto/programming/mysql/dump-just-the-table-structure-to-a-file-in-mysql/
mysql 表數(shù)據(jù)轉(zhuǎn)儲
總結(jié)
以上是生活随笔為你收集整理的mysql 表数据转储_在MySQL中仅将表结构转储到文件中的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在Windows 7或Vista资源管理
- 下一篇: 群晖 mysql 端口配置_群晖DS21