mysql as user

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Lynn David Newton
Dátum:  
Címzett: plug-discuss
Tárgy: 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