473,467 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to start / stop the MySQL service

blossam
29 New Member
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 i can use to start mysql after shutdown it
Sep 7 '07 #1
4 124407
bartonc
6,596 Recognized Expert Expert
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 i can use to start mysql after shutdown it
Check out the manual: 5.2.2. Command Options.

Also, I notice that you are on Windows.
In the Start menu, under MySQL go to the MySQL Server x.x | MySQL Server Instance Configuration Wizard. There you will find an option to start the service when Windows boots up.
Sep 7 '07 #2
Atli
5,058 Recognized Expert Expert
Hi.

If you are using Windows, you can start and stop the MySQL service just like any other service.
Open a cmd window and type:
Expand|Select|Wrap|Line Numbers
  1. net stop MySQL
  2. net start MySQL
  3.  
Where MySQL is the name of the MySQL service.

On Linux you can do something like this:
Expand|Select|Wrap|Line Numbers
  1. # /etc/init.d/mysqld start
  2. # /etc/init.d/mysqld stop
  3. # /etc/init.d/mysqld restart
  4.  
Fedora / Red Hat also support this:
Expand|Select|Wrap|Line Numbers
  1. # service mysqld start
  2. # service mysqld stop
  3. # service mysqld restart
  4.  
P.s. I edited the title to make it a little clearer.
Sep 7 '07 #3
blossam
29 New Member
Hi.

If you are using Windows, you can start and stop the MySQL service just like any other service.
Open a cmd window and type:
Expand|Select|Wrap|Line Numbers
  1. net stop MySQL
  2. net start MySQL
  3.  
Where MySQL is the name of the MySQL service.

On Linux you can do something like this:
Expand|Select|Wrap|Line Numbers
  1. # /etc/init.d/mysqld start
  2. # /etc/init.d/mysqld stop
  3. # /etc/init.d/mysqld restart
  4.  
Fedora / Red Hat also support this:
Expand|Select|Wrap|Line Numbers
  1. # service mysqld start
  2. # service mysqld stop
  3. # service mysqld restart
  4.  
P.s. I edited the title to make it a little clearer.
thanks 4 help me. i really need this
Sep 8 '07 #4
Kiraa
1 New Member
yes really Thx it helps and it's Simple .... thx
Nov 17 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: SenthilVel | last post by:
Hi All i do need to control my windows services using aspx pages. I used the System.ServiceProcess.ServiceController namespace .... this is working fine when i run my code in a windows...
2
by: Li Pang | last post by:
I used the following code to manage IIS service Dim iis As New System.ServiceProcess.ServiceController("IIS Admin Service") If iis.Status() = ServiceProcess.ServiceControllerStatus.Stopped Then...
2
by: C.C. \(aka Me\) | last post by:
I am wondering if there is a class that can be used to install/remove services? I know that there is one for starting/stopping/etc. but not sure about actually install/remove. What I have is a C#...
1
by: schaf | last post by:
Hi all! I'm still trying to start/stop a service on a remote computer. (I promiss that's the last new post because of this problem from my side) My situation: I've an application running under...
4
by: Bob | last post by:
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
3
by: Goran Djuranovic | last post by:
Hi all, I have a web app running on a local PC that can start and stop windows service on a remote machine, but only when I browse to it locally. If I browse to it from my other PC and try to...
1
by: TechnoAtif | last post by:
Could not start the mysql service on localcomputer Error 1067:The process terminated unexpectedly. ------------------------------------------------------------------------------ Hi All. I 'm...
6
by: santhanalakshmi | last post by:
Hi, I want to start the mysql services by manually in the dos on windows...... Starting an Mysql Service : shell>net start mysql The service name is...
0
Pakmarshal
by: Pakmarshal | last post by:
Hi, I have developed a windows service which records the applications (processes) that runs on the machine. To get the process start trigger i have used wmi. Obj_ManagementStartWatcher = New...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.