#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 hostnameor-u usernamebut insist on-ppasswordinstead of-p password. You can of course use the full parameter--password=passwordbut as most people use the shorthand commands it just seems slightly unintuitive.