I got the .my.cnf to work as this
[client]
user=webworkWrite
password="mydatabasepassword"
Now issuing these commands on the shell as follows
$mysql webwork lets me in w/o a password
$mysqldump --opt webwork dumps the DB to the screen
Now I wrote the wwmysqldump file exactly like this:
#!/bin/bash
HOME=~/downloads (note: this folder exists!)
mysqldump --opt webwork
Then, I chmod it to 744 (xrw-r--r--)
then, when I try to execute it like this
$wwmysqldump
I get
error 1045 Access denied for user 'wwadmin'@'localhost' using password: NO
but that is wrong because the .my.cnf file should set the user to 'webworkWrite', right?...
this is way above my paygrade :) Please HELP !