What to put into Mysql config files …
Layout of the ~/.my.cnf configuration file:
[client] host=host.domain.tld password = secret user = root
Part of a Mysql 5.0 config file (character-set and collation related).
[...] # The MySQL server [mysqld] init-connect='SET NAMES latin1 COLLATE latin1_german1_ci' default-character-set=latin1 character-set-server=latin1 collation_server=latin1_german1_ci [...]