Open main menu

Changes

85 bytes added ,  08:31, 8 April 2015
no edit summary
When using MySQL, I always use a .my.cnf file to store my password so that I can switch to 'root' on the host, and execute whatever commands I need.
<presource lang="bash">file=~/.my.cnftouch $filechmod 600 $filecat <<EOF >> $file
[client]
user=root
password=SuperSecretSauce
EOF </presource>
== Backup Script ==
4,558

edits