Home » Php » Fetch location of MySQL slow query log via PHP

Fetch location of MySQL slow query log via PHP

Posted by: admin July 12, 2020 Leave a comment

Questions:

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.

How to&Answers:

run this query:

show variables like '%slow%';