#command-line
Tag
-
Why is there no space in the MySQL password parameter?
After troubleshooting a MySQL issue with a colleague we began discussing a “feature” of the MySQL command line which insists that you don’t put a space in the password parameter when using the short parameter. We both felt that it was rather inconsistent to allow the usage of
-h hostname
or-u username
but insist on-ppassword
instead of-p password
. You can of course use the full parameter--password=password
but as most people use the shorthand commands it just seems slightly unintuitive.