[英]Fetch location of MySQL slow query log via PHP
How can I discover the filesystem location of the slow query log from php? 如何从php中发现慢查询日志的文件系统位置? I'd like to do this dynamically through a query (if possible, or some other runtime method) as opposed to parsing any my.ini files.
我想通过查询动态执行此操作(如果可能,或其他一些运行时方法),而不是解析任何my.ini文件。
运行此查询:
show variables like '%slow%';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.