简体   繁体   中英

How to get PID file in MYSQL

How to get location of mysql PID file using API in windows?

I am trying to get mysql PID file.

I have written code

select @@global.pid_file

It is working in Linux. But it is not working in 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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