Guest User

Untitled

a guest
Sep 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. mysqldump --opt --credfile /etc/mysql_creds mydatabase > output.sql
  2.  
  3. username=myuser
  4. password=ToPsEcReT
  5.  
  6. $ mysqldump --defaults-extra-file=mycred.cnf ...
  7.  
  8. $ cat mycred.cnf
  9. [mysqldump]
  10. user = myuser
  11. password = xyzzy
  12.  
  13. $ mysql_config_editor set --login-path=dump --host=localhost --user=root --password
  14. Enter password:
  15.  
  16. $ mysqldump --login-path=dump ...
Add Comment
Please, Sign In to add comment