Created
May 20, 2018 21:44
-
-
Save matteyeux/db5ebf8bbe3078c67ae14e2f38c8d1b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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