Tyler,

Thanks for all the info... I'd love to help find the answer, but I don't
know gdb (or even what it is, but I have heard those letters before :)

So now I can start and "stop" the server... do any of the other issues you
mention affect how mysql works for small databases?

Thanks, Jim

on 5/5/01 9:15 PM, tyler at [EMAIL PROTECTED] wrote:

> Hi Jim,
> 
> This is a known problem on OS X 10.0.x.
> 
> I keep meaning to take a look at it, but haven't had the time ( I have
> to learn gdb and the mysql source first/at the same time).  If you are
> already a familiar with gdb and can help the mysql programmers by
> finding out more info and/or even a fix, that would help get this fixed.
> 
> safe_mysqld has the job of keeping a copy of mysqld running.  If it
> finds mysqld not running (or if one dies?), it will start another.  So
> if you kill -9 on safe_mysqld first and then on mysqld you can get them
> all stopped.
> 
> If you just kill -9 mysqld then safe_mysqld is simply starting another
> for you (just doin' it's job don't cha know!).
> 
> I'd love to get mysql working on OS X, I'm just really swamped right now
> and behind the learning curve for this unix stuff being a mac hack.
> 
> 
> One pointer I received from Sinisa (from the mysql dev team):
> 
>> Signal handling is all done in mysqld.cc in sql/ subdir.
> 
> which is where we need to start I think since it appears that mysql's
> handling of the shutdown signal is not working.   If you run the
> mysql-test-run script it has trouble and says:
> 
>> Warning;  Aborted waiting on pid file: '/usr/local/mysql-
>> test/var/run/mysqld-slave.pid' after 10 seconds
>> Slave shutdown finished
> 
> that's what makes it seem like the signals are not working.  Either that
> or the file locking done on the pid file (what is that done for and who
> does it?  I don't know).
> 
> 
> Let me know if you make any progress.
> 
> Tyler
> 
> 
> 
> On Saturday, May 5, 2001, at 10:58 AM, Jim McCarty wrote:
> 
>> From: [EMAIL PROTECTED]
>> To: [EMAIL PROTECTED]
>> Subject: can't shutdown mysqld (nicely or not) on OS X 10.0.2
>> 
>>> Description:
>>     After starting mysqld with:
>> 
>> safe_mysqld --user-mysql &
>> 
>>     I cannot shutdown the daemon. None of the mysqladmin commands work,
>> kill
>> -HUP does nothing and after using kill -9, mysqld restarts.
>>     I've tried with 10.0.1 as well as 10.0.2 and also trashing
>> everything
>> and rebuilding from the source again.
>> 
>>> How-To-Repeat:
>>     On my system (following instructions in INSTALL-SOURCE), DL 3.23.37
>> source and extract in /usr/local. From mysql-3.23.37/  run configure
>> with:
>> 
>> ./configure --with-pthread --with-named-curses-libs=''
>> --with-named-thread-libs='' --prefix=/usr/local/mysql
>> 
>>     configure completes without hitch. Next, compile with:
>> 
>> make -i
>> 
>>     compile completes without hitch. Then I 'make install',
>> 'scripts/mysql_install_db' and the rest.
>>     I start testing the installation but I can't stop the daemon! I can
>> only
>> kill it with 'kill -9' but then it restarts again immediately.
>> 
>>> Fix:
>> 
>>> Submitter-Id:
>>> Originator:    System Administrator
>>> Organization:
>>> MySQL support: none
>>> Synopsis:      Cannot shutdown daemon on OS X 10.0.2
>>> Severity:      serious
>>> Priority:      medium
>>> Category:      mysql
>>> Class:         sw-bug
>>> Release:       mysql-3.23.37 (Source distribution)
>> 
>>> Environment:
>> System: Darwin localhost 1.3.2 Darwin Kernel Version 1.3.2: Fri Apr 27
>> 22:50:58 PDT 2001; root:xnu/xnu-124.7.obj~1/RELEASE_PPC  Power Macintosh
>> powerpc
>> 
>> 
>> Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/cc
>> 
>> Compilation info: CC='cc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
>> LIBC:
>> 
>> 
>> lrwxr-xr-x  1 root  wheel  15 May  1 23:49 /usr/lib/libc.dylib ->
>> libSystem.dylib
>> Configure command: ./configure  --with-pthread --with-named-curses-libs=
>> --with-named-thread-libs= --prefix=/usr/local/mysql
>> 
>> Thanks, Jim
>> 
>> 
>> ---------------------------------------------------------------------
>> 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 <mysql-unsubscribe-
>> [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

Reply via email to