Skip to content

Instantly share code, notes, and snippets.

@matteyeux
Created May 20, 2018 21:44
Show Gist options
  • Select an option

  • Save matteyeux/db5ebf8bbe3078c67ae14e2f38c8d1b5 to your computer and use it in GitHub Desktop.

Select an option

Save matteyeux/db5ebf8bbe3078c67ae14e2f38c8d1b5 to your computer and use it in GitHub Desktop.
# dump database
mysqldump -u root -p'root' -h localhost ragnarok_bdd > ragnarok_bdd.sql
# restore database
mysql -u root -p -Dragnarok_bdd < ragnarok_bdd.sql
# run sql command from bash
mysql --user="root" -p --database="ragnarok_bdd" --execute="show tables;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment