MySql starting failed?
Clint Harshaw
clint at penguinsolutions.org
Thu Apr 15 19:42:35 UTC 2004
On Thursday 15 April 2004 2:48 pm, hongwei at morpheus.wustl.edu wrote:
> Thanks for the help! However, I tried 2 suggestions:
>
> if !([ -n "`/usr/bin/mysqladmin -u mysqld ping 2> /dev/null`" ]); then
> with
> if [ -n "`/usr/bin/mysqladmin -u mysqld ping 2> /dev/null`" ]; then
>
> and
>
> if !([ -n "`/usr/bin/mysqladmin -u UNKNOWN_USER ping 2> /dev/null`" ]);
> then with
> if [ -n "`/usr/bin/mysqladmin -u UNKNOWN_USER ping 2> /dev/null`" ]; then
>
> or even just one of the above lines in /etc/rc.d/init.d/mysqld, then
> restart mysqld. But I still got the same error. Is any other thing I
> need to "clean"?
>
> Thanks!
>
> Hongwei
>
I edited only the one line that begins if !([-n and left the other line
intact.
Here is a copy of the affected section from my /etc/rc.d/init.d/mysqld:
# 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 "`/usr/bin/mysqladmin ping 2> /dev/null`" ]; then
break;
else
sleep 1;
fi
done
if !([ -n "`/usr/bin/mysqladmin -u UNKNOWN_USER ping 2>
/dev/null`" ]); then
echo "Timeout error occurred trying to start MySQL
Clint
--
Clint Harshaw <clint at penguinsolutions.org>
Fedora Core 1
2.4.22-1.2174.nptl GNU/Linux
Uptime: 6 days 23 hours and 46 minutes.
More information about the fedora-list
mailing list