I cant connect to mysql if I do this:
mysql -ualan -psecret
ERROR 1045 (28000): Access denied for user 'alan'@'localhost' (using password: YES)
mysql -ualan -p
If your password has special characters in your shell, you would need to quote or escape them.
In bash or bash-like shells, this should work:
mysql -ualan -p'te$t'
mysql -ualan -pte\$t