El Domingo, 24 de Abril de 2005 21:43, Eric Scouten escribió:
If you've been given a username and password by someone else who runs the MySQL server, you *must* put a space between the -u and the user name and you must *not* put a space between the -p and the password. (Yes, I know this is confusing.) Thus:
$ mysql -u whoami -psecret drupal
I really discourage this. If someone in the machine reads your .bash_history (asuming you use bash), or runs px in the machine, can steal your password.
In all mysql versions I've used, running just "-u foo -p" will ask your password interactively, solving the problem from above.