image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old February 12th, 2003, 04:06 AM
vikingshelmut's Avatar
100% Bull Plop
 
Join Date: Dec 2001
Location: Cupertino, CA
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
vikingshelmut is on a distinguished road
Question How do I stop the MySQL server?

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!
Reply With Quote
  #2  
Old February 12th, 2003, 09:01 AM
Registered User
 
Join Date: Jan 2002
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
bluehz is on a distinguished road
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
Reply With Quote
  #3  
Old February 12th, 2003, 10:18 AM
Gnomo's Avatar
Proud Member
 
Join Date: Oct 2002
Location: Neither Here nor There
Posts: 280
Thanks: 0
Thanked 0 Times in 0 Posts
Gnomo is on a distinguished road
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?
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

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


All times are GMT -5. The time now is 04:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.