#/etc/init.d/mysqld restart
stopping MySQL [OK]
Timeout error occurred trying to start MySQL Daemon. [Failure]
But this time MySQL actually started, because with the NETSTAT-LN command to see 3306 Port has started. You can also connect to a database using mysql-u root-p password.
Workaround:
Modify/etc/init.d/mysqld.
Create Dameon users in MySQL, and then modify/etc/init.d/mysqld.
The specific actions are as follows:
Let's take a look at how the/etc/init.d/mysqld start script works, and note the following
# If you've removed anonymous users, this line must be changed to
# use a user that is allowed to ping mysqld.
ping="/usr/bin/mysqladmin -uUNKNOWN_MYSQL_USER ping"
# Spin for a maximum of ten seconds waiting for the server to come up
if [ $ret -eq 0 ]; then
for x in 1 2 3 4 5 6 7 8 9 10; do
if [ -n "`$ping 2> /dev/null`" ]; then
break;
else
sleep 1;
fi
done
if !([ -n "`$ping 2> /dev/null`" ]); then
echo "Timeout error occurred trying to start MySQL
Daemon." action $"Starting $prog: " /bin/false
else
action $"Starting $prog: " /bin/true
fi
else
action $"Starting $prog: " /bin/false
fi
[ $ret -eq 0 ] && touch /var/lock/subsys/mysqld
return $ret