Since I always forget about that, I’ll leave it here.

# cat ~/.my.cnf
[client]
password=foobar

# mysql
mysql>
%d bloggers like this: