You have to provide more info to get help. It looks like the script is reading SQL commands from the pipe /tmp/mysql.pipe if it exists.
So, there is some other process that writes to that pipe. So, the reading process will wait until the writing process closes the pipe.
The obvious error is that the password invocation is incorrect. There should be no = after password unless ‘syslog’ is the password; in that case, there should be no space after =.
Alternatively, did you use PASSWORD() to encrypt the password? In that case you need to provide the encrypted password.
If you are using plain text passwords, you are asking for problems.