multiple [client] entries in .my.cnf?

Mark Street jet at sonic.net
Tue Jan 14 10:58:25 PST 2003


[client]
host=goofy.disney.com
user=goofy
password=yuck

[client]
host=mickey.disney.com
user=minnie
password=mouse

or... if your MySQL username is the same as your login ..

[client]
host=goofy.disney.com
password=yuck


On Monday 13 January 2003 23:55, troy wrote:
> I know there are a lot of MySQL users here...
>
> Does .my.cnf have a syntax for specifying multiple client
> username/host/password settings?  I frequently connect to
> several mysql servers on several different hosts.
>
> I hacked up a wrapper (using --defaults-file=) so I don't have to
> specify these settings interactively or expose them on the command
> line, but it seems like my.cnf should have this capability built in.
> Haven't found any evidence of that in the manual or on google.
>
> -ta

-- 
Mark Street, D.C.
Red Hat Certified Engineer
Cert# 807302251406074
--
Key fingerprint = 3949 39E4 6317 7C3C 023E  2B1F 6FB3 06E7 D109 56C0
GPG key http://www.streetchiro.com/pubkey.asc



More information about the talk mailing list