Prøv dette -
[client]
user=root
password="pass"
[mysql]
user=root
password="pass"
[mysqldump]
user=root
password="pass"
[mysqldiff]
user=root
password="pass"
Placering for .my.cnf:~/.my.cnf
Se venligst manualsiden med titlen Brug af indstillingsfiler