How can I discover the filesystem location of the slow query log from 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.
如何从php中发现慢查询日志的文件系统位置?我想通过查询(如果可能,或其他一些运行时方法)动态地执行此操作,而不是解析任何my.ini文件。
1 个解决方案
#1
13
run this query:
运行此查询:
show variables like '%slow%';
#1
13
run this query:
运行此查询:
show variables like '%slow%';