Click here to Skip to main content
15,887,886 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello all,
I have tried a lot to find the pid_file in the mysql, but I could not find it. I have been trying the last days. I also searched my.ini for that. I got this my.ini file, but could not find the pid_file.
Please help me!

Thanks in advance!

..it's very urgent friends.........
Posted
Updated 2-May-11 4:27am
v2
Comments
Umair Feroze 2-May-11 10:30am    
Are you using MySQL on windows or on Linux
soumava chakraborty 2-May-11 11:52am    
I am using MySQL on windows.
markkuk 2-May-11 16:55pm    
Repost of http://www.codeproject.com/Questions/189429/Finding-and-printing-mysql-pid.aspx
Add comments or edit the question if you need clarification instead of posting essentially the same question again.

Read the manual here: http://dev.mysql.com/doc/refman/5.0/en/instance-manager-command-options.html[^].

If your version does not have an instance manager (Version >= 5.5) you can try running MySql as a service. You can control the service using the sc system command[^].

Best Regards,

-MRB
 
Share this answer
 
v2
Under Windows, the PID file for MySQL is located the same place where database root folder is.

In My.ini file:
MSIL
#Path to the database root
datadir="C:/ProgramData/MySQL/MySQL Server 5.1/Data/"


Under this path, there is a .PID file, that holds the current process id. The filename is the name of the computer.

But if you what to control is MySQL is running or not. Then use the "SC" command tool under Windows.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900