I changed the script and now all is well. However I have two concerns:
1) Paranoid about the password being in this script. Is there a way around this.
2) Since I had to change the script to make it work, Is there a bug in 3.23.41??
Thanks for pointing me in the right direction.
Bill Adams <[EMAIL PROTECTED]> on 11/12/2001 01:58:18 PM
To: Lad Gaal/MarconiMedical@Marconi
cc: Mysql List <[EMAIL PROTECTED]>
Subject: Re: Can't stop mysql
[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
---------------------------------------------------------------------
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