Article ID: 428, created on Oct 6, 2008, last review on May 6, 2014

  • Applies to:
  • Plesk 8.x for Linux/Unix

Resolution

This problem may occur under OS FedoraCore 1 and FC2. MySQL startup uses /usr/bin/mysqladmin utility with "ping" parameter, which requires administrator rights to be initialized. If  Plesk is installed in the system the utility can not be executed and it returns negative error code.

 

To resolve it you should modify MySQL startup script.

In the /etc/init.d/mysqld script find the following lines and insert -uadmin -p`cat /etc/psa/.psa.shadow` between /usr/bin/mysqladmin and "ping" as in the example below:

 

{cl_begin} # Spin for a maximum of ten seconds waiting for the server to come up

 if [ -n "`/usr/bin/mysqladmin ping 2> /dev/null`" ]; then

 break;

 else

 sleep 1;

 fi

 done

 if !([ -n "`/usr/bin/mysqladmin ping 2> /dev/null`" ]); then

 echo "Timeout error occurred trying to start MySQL Daemon."

 action $"Starting $prog: " /bin/false

 else

 

 # Spin for a maximum of ten seconds waiting for the server to come up

 if [ -n "`/usr/bin/mysqladmin -uadmin -p`cat /etc/psa/.psa.shadow` ping 2> /dev/null`" ]; then

 break;

 else

 sleep 1;

 fi

  done

 if !([ -n "`/usr/bin/mysqladmin -uadmin -p`cat /etc/psa/.psa.shadow` ping 2> /dev/null`" ]); then
{cl_end}

b8ef5052d936e902043e41759118114e a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF