You have to quote the password, like this:

mysql -u root -p'PASSWORD'

You must do this if the password has any of the following characters: * ? [ < > & ; ! | $

Source:
http://superuser.com/a/123953

Pin It on Pinterest

Share This