简体   繁体   English

如何在 MYSQL 中获取 PID 文件

[英]How to get PID file in MYSQL

How to get location of mysql PID file using API in windows?如何使用 windows 中的 API 获取 mysql PID 文件的位置?

I am trying to get mysql PID file.我正在尝试获取 mysql PID 文件。

I have written code我已经写了代码

select @@global.pid_file

It is working in Linux.它在 Linux 中工作。 But it is not working in Windows.但它不适用于 Windows。 How to fix this?如何解决这个问题?

SHOW VARIABLES LIKE 'pid_file'

If it doesn't work I guess it just doesn't exist on Windows systems.如果它不起作用,我猜它在 Windows 系统上不存在。

Edit:编辑:

Actually, after I checked it turns out that this variable is only used on Unix-like systems, so it doesn't exist on Windows.实际上,在我检查后发现这个变量只在类 Unix 系统上使用,所以它在 Windows 上不存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM