Re: MySql starting failed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 15 April 2004 2:48 pm, hongwei@xxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxx>
Fedora Core 1
2.4.22-1.2174.nptl GNU/Linux
Uptime: 6 days 23 hours and 46 minutes.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux