Skip to content

Instantly share code, notes, and snippets.

@vertexvaar
Last active July 28, 2020 13:01
Show Gist options
  • Select an option

  • Save vertexvaar/f5ec07da573db571a52f3d62edfc3b2a to your computer and use it in GitHub Desktop.

Select an option

Save vertexvaar/f5ec07da573db571a52f3d62edfc3b2a to your computer and use it in GitHub Desktop.
MySQL Dump with UTF8 and better performance on import
mysqldump --add-drop-database --create-options --extended-insert --no-autocommit --add-locks --quick --default-character-set=utf8 --result-file=database.sql -h localhost -u root -p root database
mysqldump\
-h localhost \
-u root \
-p root \
--add-drop-database \
--create-options \
--extended-insert \
--no-autocommit \
--add-locks \
--quick \
--default-character-set=utf8 \
database \
--result-file=database.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment