[EMAIL PROTECTED] wrote:

> The only reference to mysqladmin is for the reload at the end. I think this
> whole thing started after doing the mysql_install_db and then creating the root
> password - but it may be a coincidence.
>
> Any and all help is welcome as to why /etc/init.d/mysqld stop fails.
>
> The /etc/init.d/mysql is as follows:

I would update the script:


>
> stop(){

             /path/to/mysqladmin -uroot -pyour?root.password shutdown > /dev/null
2>&1
            ret=$?

>         if [ $ret -eq 0 ]; then
>             action $"Stopping $prog: " /bin/true
>         else
>             action $"Stopping $prog: " /bin/false
>         fi
>         [ $ret -eq 0 ] && rm -f /var/lock/subsys/mysqld
>         [ $ret -eq 0 ] && rm -f /var/lib/mysql/mysql.sock
>         return $ret
> }
>
> restart(){
>     stop
>     start
> }
>
> condrestart(){
>     [ -e /var/lock/subsys/mysqld ] && restart || :
> }
>
> reload(){

   [ -e /var/lock/subsys/mysqld ] && mysqladmin -uroot -pyour?root.password reload


> }
>

b.



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to