Skip to content

Instantly share code, notes, and snippets.

@adamcrampton
Created September 23, 2019 03:42
Show Gist options
  • Save adamcrampton/58d1008e4aa6a6ca33b40e0d5411c174 to your computer and use it in GitHub Desktop.
Save adamcrampton/58d1008e4aa6a6ca33b40e0d5411c174 to your computer and use it in GitHub Desktop.
MySQL command line import
#!/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