Last active
October 4, 2017 10:16
-
-
Save Arbagen/4b96a8cd7054a7c85a215f48c06dac4a to your computer and use it in GitHub Desktop.
mysql import cli
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
unzip -p dump.zip | mysql -h 127.0.0.1 -P 3306 -u root -p projects_ndb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mysql --default-character-set=utf8 -h$mysql_host -u$mysql_user -p$mysql_password --database $mysql_db < "$dump_file" 2>&1