John Mistler wrote:
Aha, this revealed the .pid:

/usr/local/mysql-standard-4.0.18-apple-darwin6.8-powerpc/data/John-Mistlers-
Computer.local.pid

Now, this brings up a new question.  Is there a "sudo find" command I can
use to locate the proper .pid on any given computer?  I am hard coding this
into an application that will reset the root password to whatever the user
enters.  How can this be done if I don't know the location of the .pid file
ahead of time on their system?

Welcome to the Exciting World Of Installer Writing :-)

I'd recommend, in order, 1) take Greg Willits' suggestion to look
at embedded MySql rather than try to deal with the vagaries of a
possible existing installation, or 2) get a good shell (sh/bash)
scripting book. It's possible to do what you want fairly reliably
but it's a lot more than a one-liner! And OT for this list, too.

P.S. Is the host name in my example "local" or
"John-Mistlers-Computer.local"?

I believe this reflects some OS X wierdness, in that 'local' is a dummy domain name, and the hostname is 'John-Mistlers-Computer'. I am not a Mac person, this Powerbook's just a loaner for a project, so you probably want to confirm that with some testing. Or ask on a Mac-oriented dev list.

HTH,
--
Hassan Schroeder ----------------------------- [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                          dream.  code.




-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to