finding mysqlpid through c/c++ program
I need to Write a C/C++ program which finds the MySQL PID file and prints its content assuming that the application will run on the same system running MySQL. Please share some idea that how should I do it?If possible provide som开发者_如何学运维e link from which I can get details.
You can use the FindFirstFile Windows API function to look for the filename. Sample code here: http://msdn.microsoft.com/en-us/library/aa364418(v=vs.85).aspx
Or you could use the --pid-file switch to start MySQL?
精彩评论