Skip to content

Instantly share code, notes, and snippets.

@Arbagen
Last active October 4, 2017 10:16
Show Gist options
  • Save Arbagen/4b96a8cd7054a7c85a215f48c06dac4a to your computer and use it in GitHub Desktop.
Save Arbagen/4b96a8cd7054a7c85a215f48c06dac4a to your computer and use it in GitHub Desktop.
mysql import cli
unzip -p dump.zip | mysql -h 127.0.0.1 -P 3306 -u root -p projects_ndb
@Arbagen
Copy link
Author

Arbagen commented Oct 4, 2017

mysql --default-character-set=utf8 -h$mysql_host -u$mysql_user -p$mysql_password --database $mysql_db < "$dump_file" 2>&1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment