Unable to start mysql: start: Job failed to start /proc/self/fd/9: Syntax error: "|" unexpected

Created:

2017-05-17 08:43:44 UTC

Modified:

2017-08-08 13:25:45 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to start mysql: start: Job failed to start /proc/self/fd/9: Syntax error: "|" unexpected

Issue Symptoms

Unable to start MySQL with the following command and error:

#/etc/init.d/mysql start
start: Job failed to start

and

#service mysql start
start: Job failed to start

However, it is possible to start MySQL using the following command:

# mysqld

In /var/log/upstart/mysql.log the following can be found:

/proc/self/fd/9: 6: /proc/self/fd/9: Syntax error: "|" unexpected

Conditions

MySQL startup script contain Windows end-of-line characters - ^M

Resolution

Check if there any Windows end-of-line character in MySQL startup script using vim:

# vim -b /etc/init/mysql.conf

If Windows end-of-line character ^M exist, consider to remove all of them.

 

Have more questions? Submit a request
Please sign in to leave a comment.