Skip to content

Instantly share code, notes, and snippets.

@ambercouch
Last active January 28, 2021 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambercouch/1de96e3cf7895e2ff7565f6e60a87590 to your computer and use it in GitHub Desktop.
Save ambercouch/1de96e3cf7895e2ff7565f6e60a87590 to your computer and use it in GitHub Desktop.
MySQL commands
SELECT * FROM orders_admin group by order_session having count(*) >= 2
mysql -u username -p database_name < file.sql
unzip -p dbdump.sql.zip | mysql -u root -p yourdbname
zcat file.sql.gz | mysql -u 'root' -p your_database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment