如何在MYSQL中获取PID文件 [英] How to get PID file in MYSQL

查看:59
本文介绍了如何在MYSQL中获取PID文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 windows 中使用 API 获取 mysql PID 文件的位置?

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

我正在尝试获取 mysql PID 文件.

I am trying to get mysql PID file.

我写了代码

select @@global.pid_file

它在 Linux 中运行.但它在 Windows 中不起作用.如何解决这个问题?

It is working in Linux. But it is not working in Windows. How to fix this ?

推荐答案

SHOW VARIABLES LIKE 'pid_file'

如果它不起作用,我想它只是在 Windows 系统上不存在.

If it doesn't work I guess it just doesn't exist on Windows systems.

其实我查了一下发现这个变量只在类Unix系统上使用,所以在Windows上不存在.

Actually, after I checked it turns out that this variable is only used on Unix-like systems, so it doesn't exist on Windows.

这篇关于如何在MYSQL中获取PID文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆