/ Published in: SQL
(taking cori comment into account)
Expand |
Embed | Plain Text
mysqldump -u USER -p DATABASE > filename.sql
Comments
Subscribe to comments
You need to login to post a comment.
(taking cori comment into account)
mysqldump -u USER -p DATABASE > filename.sql
Subscribe to comments
You need to login to post a comment.
don't, don't, don't type your password on the command line like this. A better snippet would be:
mysqldump -u USER -p DATABASE > filename.sql
this way mysql will ask you for your password interactively. If you do what the original snippet says, your password will appear in plain text in your history file. If you provide it interactively it will never show up in a log.