> You misunderstand. I realize that putting the password on the command
> line is insecure in the presence of "ps auxwww" and Process Explorer
> and such. I'm kvetching about how mysql and mysqldump parse their
> arguments, that
> * -uUSERNAME and -pPASSWORD are parsed similarly
> * -u USERNAME and -p UNRELATED_ARGUMENT are not
It's quite simple; -p, --password takes an optional argument which it will only
look for if
a) the short form is immediately followed by a non-space char
b) the long form is followed by an equals sign
In all other cases, parsing of the command line continues. If the
next item starts with '-', it's a switch. If not, switch parsing ends
and mysql starts slurping normal arguments.
-pPASSWORD
-p SOMETHINGELSE
--password=PASSWORD
--password SOMETHINGELSE
Tim: sorry about the premature post.. gmail keyboard flub..
--
- michael dykman
- [EMAIL PROTECTED]
- All models are wrong. Some models are useful.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]