A couple of questions for any Mac users willing to help:
I have created an application for OS X.3 that talks to the MySQL server with
shell commands. In order for those commands to work, I have to include a
proper username and password to access the MySQL database designated for my
app within
On Sat, 22 May 2004, John Mistler wrote:
do shell script kill cat /usr/local/mysql/bin/mysql/data/localhost.pid
The kill command takes a numeric PID as its argument. You need to get
the pid out of the pidfile. So to get the above to work you have to
enclose cat and the filename in backticks:
On May 22, 2004, at 2:12 AM, John Mistler wrote:
In the larger picture, I am wondering if there is a way to avoid all of
this. Ideally, I would like for the application to come packaged with
MySQL, to install MySQL automatically (not sure what happens if MySQL
already exists on the system), and
I'm having trouble getting this line to work. I have tried:
kill `cat /usr/local/mysql/bin/mysql/data/localhost.pid`
- Not a directory
kill `cat /usr/local/mysql/data/localhost.pid`
- Permission denied
I'm not sure if I have the wrong hostname, or if the command is more flawed
than that.
John Mistler wrote:
I'm having trouble getting this line to work. I have tried:
kill `cat /usr/local/mysql/bin/mysql/data/localhost.pid`
- Not a directory
kill `cat /usr/local/mysql/data/localhost.pid`
- Permission denied
I'm not sure if I have the wrong hostname, or if the command is more flawed
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
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