|
#1
| ||||
| ||||
|
I have successfully installed and setup the MySQL server using Fink. I know the proper terminal command to start the server: /sw/bin/safe_mysqld & How do I stop it? I've installed Xmysqladmin also with Fink, and when I try to stop the server, it times out. I've tried killing the mysqld daemon with kill -9 "PID", and it just respawns with a new PID. Yes i know you can restart and that will kill the server, but I'd rather be able to stop it on my own. Thanks for the help! |
|
#2
| |||
| |||
|
Not sure if your install has this - but many unix/Linux apps have a "ctl" script that is usually just a wrapper script to cleanly star/stop/restart services. Apache has one, Qmail has one, and in my case my install of MySQL has one. Try issuing: mysqlctl stop The usage for this is: usage: /usr/local/sbin/mysqlctl start|stop If you have no luck with it - try issuing the full path command: /usr/local/sbin/mysqlctl stop |
|
#3
| ||||
| ||||
|
The standard way to stop MySQL is to use the mysqladmin tool. It works like this: mysqladmin -u root -p password (if you set a password for root) shutdown If everything goes right, the daemon will shutdown the server, if not...time to use kill. Edit:Note: This assumes that you have set the path for MySQL. If you haven't you will have to run mysqladmin from it's path. I believe that is /usr/local/mysql-version#/bin/
__________________ "Your computer has too much computer in it, and not enough typewriter." GCS/IT$ d- s+: a--? C++ U* !P L++ E---- W+++ !N o? !K-? !w O? M++ V? !PS !PE Y+ PGP t++ !5 X+ R+ tv+ b+ DI+ D- G+ e(++) h* r+++ y? |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Uploading MySQL database from my computer to server | ignatz | Design & Media | 4 | January 2nd, 2003 04:40 PM |
| Help With Macos X server and Mysql | chocklehot | Unix & X11 | 1 | August 6th, 2002 02:08 PM |
| mysql and 1o.1 server | 3mors | Mac OS X System & Mac Software | 2 | November 6th, 2001 01:31 PM |