Created
September 23, 2019 03:42
-
-
Save adamcrampton/58d1008e4aa6a6ca33b40e0d5411c174 to your computer and use it in GitHub Desktop.
MySQL command line import
This file contains hidden or 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
#!/bin/bash | |
# Argument is path + filename of .sql file dump. | |
mysql database_name -u user_name -p --host=127.0.0.1 --port=33060 < $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment