Specifying Connection Parameters by Using Option Files
The following example illustrates the format used to write MySQL option files:
# general client program connection options
[client]
host=localhost
user=cbuser
password=cbpass
# options specific to the mysql program
[mysql]
no-auto-rehash
# specify pager for interactive mode
pager=/usr/bin/less