Defaults file

On debian/ubuntu the defaults re defined in /etc/mysql/debian.cnf. Use this to connect to the db using these defaults.

mysql --defaults-file=/etc/mysql/debian.cnf

This file can also be added/copied/linked-to(?) at ~/.my.cnf and the above flag won’t be necessary.