How can I export a database from ddev?
问题 ddev currently lacks an export-db command (see https://github.com/drud/ddev/issues/767) How can I export a database? 回答1: As of ddev v1.4.0 (2018-11-14), there is a ddev export-db command. You can do these things (from ddev export-db -h ): ddev export-db >/tmp/db.sql.gz ddev export-db --gzip=false >/tmp/db.sql ddev export-db -f /tmp/db.sql.gz In addition, don't forget about ddev snapshot , which is a great and quick way to make a quick dump of your db, but it's not as portable as a text-based