mysql shutdown

This is a discussion on mysql shutdown within the MySQL Database forums, part of the Database Forums category; Ok, so I can start mySql from command line, and it is done through a batch file at system startup. ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-03-2006
Ozz
 
Posts: n/a
Default mysql shutdown

Ok, so I can start mySql from command line, and it is done through a
batch file at system startup.
Now the problem is,
when my batch file tries to close mySql using
D:\MySql0\mysql-5.0.27\bin\mysqladmin -u root -p --port=3307 shutdown,
it hangs at the prompt asking for password.

Is there anyway I can automate it? I have tried passing the password in
the above command but doesn't seem to work.

Any help would be appreciated.

Thanks,
Ozz.


p.s: is installing mysql as service a better option (still using the
non-install zip package)

Reply With Quote
  #2 (permalink)  
Old 11-03-2006
Ozz
 
Posts: n/a
Default Re: mysql shutdown

I found this really cool post online
http://archives.neohapsis.com/archiv...5-q3/1083.html

Answers everything.

Cheers,
Ozz


Ozz wrote:
> Ok, so I can start mySql from command line, and it is done through a
> batch file at system startup.
> Now the problem is,
> when my batch file tries to close mySql using
> D:\MySql0\mysql-5.0.27\bin\mysqladmin -u root -p --port=3307 shutdown,
> it hangs at the prompt asking for password.
>
> Is there anyway I can automate it? I have tried passing the password in
> the above command but doesn't seem to work.
>
> Any help would be appreciated.
>
> Thanks,
> Ozz.
>
>
> p.s: is installing mysql as service a better option (still using the
> non-install zip package)


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0