How can I configure my MariaDB client (
mysql) so that I don't have to enter a password to connect, regardless of which host I am connecting to?
I can't just put a password in the
[client] section of
~/.my.cnf because that would apply all hosts.
For example, I'd like to be able to connection with
mysql -h myhost mydatabase, ie. without specifying username or password. Even better would be the ability to specify a "host alias" instead of the actual (awkwardly log) hostname.