473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

periodically start and stop mysql

Bob
Hi,
I would like to periodically start and stop mysql on a schedule using
something like the Windows scheduler. Does anyone know a good way to
do this?

Thanks,
Bob

Oct 31 '06 #1
4 7094
On Tue, 31 Oct 2006 06:55:35 -0800, Bob wrote:
Hi,
I would like to periodically start and stop mysql ...
/usr/share/mysql/mysql.server start

mysqladmin -u{usr} -p{pwd} shutdown

Your paths may differ. Also, there are other start/stop techniques that
you can find in the manual.
on a schedule using
something like the Windows scheduler. Does anyone know a good way to do
this?
What system are you using?
The Linux crontab facility is perfect for this.

Windows scheduler? Yuck!
Don't see why not though.
Thomas Bartkus
Nov 1 '06 #2
Bob
Thanks! I don't understand what you mean by:
/usr/share/mysql/mysql.server start.

Thomas Bartkus wrote:
On Tue, 31 Oct 2006 06:55:35 -0800, Bob wrote:
Hi,
I would like to periodically start and stop mysql ...

/usr/share/mysql/mysql.server start

mysqladmin -u{usr} -p{pwd} shutdown

Your paths may differ. Also, there are other start/stop techniques that
you can find in the manual.
on a schedule using
something like the Windows scheduler. Does anyone know a good way to do
this?

What system are you using?
The Linux crontab facility is perfect for this.

Windows scheduler? Yuck!
Don't see why not though.
Thomas Bartkus
Nov 1 '06 #3
On Wed, 01 Nov 2006 11:37:55 -0800, Bob wrote:
Thanks! I don't understand what you mean by:
/usr/share/mysql/mysql.server start.
That is the path to a bash script that comes with a typical mysql
installation on Linux. "start" is an option with obvious meaning
available along with "stop", "restart", and "reload".

The script performs the specified function on the mysql server. With
lots of error checking and error recovery details.

I expect (but don't know!) that a similar (.bat or other executable)
script is available on a Windows installation. If it is, that would be
the obvious ticket for "start"ing or "stop"ing the mysql server from a
task scheduler.

-Thomas Bartkus

Nov 3 '06 #4
"Bob" <bs********@yahoo.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.com...
Hi,
I would like to periodically start and stop mysql on a schedule using
something like the Windows scheduler. Does anyone know a good way to
do this?

Thanks,
Bob
If you are on Windows and MySQL is running as a service, then try:

NET START MySQL

and

NET STOP MySQL

....put them in the task scheduler (MySQL is the service name, alter as
needed)...

Norm
Nov 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: engsol | last post by:
I'm using Python to parse a bunch of s/w test files and make csv files for later report generation by MS ACCESS....(my boss loves the quick turn-around compared to C). Each log file may contain one...
0
by: Peter Engström | last post by:
Hi! I'm running MySQL 4.0.13 and have problem with fulltext search. I have a column of type 'text' which I fulltext index. I want to search for an e-mail address but I don't get any matches....
0
by: Trina Schwimmer | last post by:
Hi. Can anyone stop this guy and this message? I'm getting a ton of them. I might just direct his email to my delete bin. Thanks, Trina -----Original Message----- From: Info Sent:...
0
by: Cleber Hostalácio de Melo | last post by:
Hi, I need to change the stop word file used by the MySQL in fulltext seach. The documentation (www.mysql.com/doc/en/Fulltext_Fine-tuning.html) explains how to inform to MySQL the new stop...
2
by: Fred Blair | last post by:
Got mysql started, created root password. Decided to change it and used mysqladmin to try and change. It says access denied. I tried to stop the service, can't do that. I even restarted the...
0
by: Mark Adams | last post by:
I am a relative newbie to MySQL. I had a Postfix+Courier+MySQL mail server running for several months. It took me a week or so to get it up and running in September. Now, I did a clean upgrade to...
4
by: Richard | last post by:
Hi All, I've been trying to build a Ruby-on-Rails plus MySQL application. I'm running Ruby 1.8.2, Rails 1.1.4 and MySQL 5.0.15-nt over WinXP-Pro/SP2. I run under an Administrative account. ...
4
blossam
by: blossam | last post by:
hi, i want to shutdown mysql service n after that i want to start it i m using mysqladmin -u root shutdown command to stop service now i want to start it using command do u know which command...
1
by: vsrprasad16 | last post by:
Hi All, Am new to threading concepts. i want to start a thread with a method DoProcess and run this method periodically at some time interval. for this i implemented like below. public void...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.