dbTalk Databases Forums  

defaults-extra-file restrictions?

comp.databases.mysql comp.databases.mysql


Discuss defaults-extra-file restrictions? in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phill W.
 
Posts: n/a

Default defaults-extra-file restrictions? - 11-23-2010 , 08:39 AM






Can the configuration file specified via "--default-extra-file=" contain
a "password" entry (that has any effect)?

I know I can (but don't) set a password in ~/.my.cnf, but can it be done
using an arbitrarily-specified configuration file?

I'm running MySQL 5.0.77.

This fails (with "Access Denied for 'abc'@'def'"):
mysql --defaults-extra-file=pswd.cnf --user abc --host def

Content of pswd.cnf:

Quote:
[mysql]
password=PasSWorD
Any yet, this works:
mysql --password --user abc --host def
Password: PasSWorD

Are there any file system restrictions on this file? I know that config
files can't be World-writeable; is there anything else I should watch
out for?

TIA,
Phill W.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.