Skip to content

Instantly share code, notes, and snippets.

@claide
Last active March 6, 2025 02:57
Show Gist options
  • Save claide/90094a5f2a2fb68d3e804c8eb535a255 to your computer and use it in GitHub Desktop.
Save claide/90094a5f2a2fb68d3e804c8eb535a255 to your computer and use it in GitHub Desktop.
Mysql Commands
# Import a MySQL database dump into a MySQL database.
mysql -u <user_name> -p -P <port_number> -h <host_address> <table_name> < <file_path>
Usage:
mysql -u johndoe -p -P 3307 -h 0.0.0.0 mydatabase < /Users/johndoe/Downloads/myfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment