开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜