mysql as user

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Lynn David Newton
Date:  
To: plug-discuss
Subject: mysql as user

Craig> I was thinking that I could put in kind of a
Craig> ~/.fetchmailrc file for mysql so that I don't
Craig> have to pass user/password stuff on command
Craig> line or in scripts for commands like to
Craig> mysqldump

It's called ~/.my.cnf

Fill it with stuff like this:

$ cat .my.cnf
[mysql]
user=grok
password=foo
[mysqldump]
user=glorp
password=gronk
[mysqladmin]
user=root
password=zonk

See also the file /etc/my.cnf

--
Lynn David Newton
Phoenix, AZ
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss