Skip to content

Instantly share code, notes, and snippets.

@erdnuesse
Last active May 6, 2020 14:03
Show Gist options
  • Save erdnuesse/a57631c34800c0f58848864c5d6571f1 to your computer and use it in GitHub Desktop.
Save erdnuesse/a57631c34800c0f58848864c5d6571f1 to your computer and use it in GitHub Desktop.
dump the wordpress db to ./wpdump.sql
mysqldump --host=DBHOST --port=3306 --databases DBNAME --user=DBUSER --password=DBPASSWORD --default-character-set=utf8mb4 --opt --single-transaction --routines --triggers --events --add-drop-database --add-drop-table --complete-insert --delayed-insert --tz-utc > ./wpdump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment