没看见过有什么函数实现! 你看看系统变量pid_file里边*.pid的*一般就是服务器的名字!mysql> show variables like 'pid_file'; +---------------+--------------------------+ | Variable_name | Value | +---------------+--------------------------+ | pid_file | d:\mysql\data\unitel.pid | +---------------+--------------------------+ 1 row in set (0.10 sec)
你看看系统变量pid_file里边*.pid的*一般就是服务器的名字!mysql> show variables like 'pid_file';
+---------------+--------------------------+
| Variable_name | Value |
+---------------+--------------------------+
| pid_file | d:\mysql\data\unitel.pid |
+---------------+--------------------------+
1 row in set (0.10 sec)