Last active
December 13, 2015 14:52
-
-
Save biggora/b7c9768bba025142f710 to your computer and use it in GitHub Desktop.
This file contains 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
# Dumping the database structure for all tables with no data | |
# Dumping the MySQL | |
mysqldump -d -h localhost -u root -pmypassword databasename > dumpfile.sql | |
# Dumping the SQlite | |
sqlite3 databasefile.db .sch > dumpfile.sql | |
# Dumping the PostgreSQL | |
pg_dump --schema-only databasename > dumpfile.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment