Skip to content

Instantly share code, notes, and snippets.

@AdrianAcala
Last active February 28, 2020 01:08
Show Gist options
  • Save AdrianAcala/985ec4595f3593c1e4f910d9ef3f56cb to your computer and use it in GitHub Desktop.
Save AdrianAcala/985ec4595f3593c1e4f910d9ef3f56cb to your computer and use it in GitHub Desktop.
Command to execute the contents of a file into a MySQL database
mysql -h$MYSQL_HOSTNAME -u$MYSQL_USERNAME -p$MYSQL_PASSWORD < file.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment