I am running the following command to connect to a remove mysql server (it is part of a bash script that will connect automatically)
mysql -h slave1 -u monitor -pvP!KnK4*
And I receive the following response within the terminal window
-bash: !KnK4: event not found
When I run
mysql -h slave1 -u monitor -p without adding the passing in the command line and use the same password when prompted to enter it in this works fine.
What am I doing wrong in this instance?
PS the password above is not the real password (it is much longer just made it smaller for stackexchange purposes)