Re: How to get trace of all database queries executed by php

From: Date: Sat, 07 May 2016 00:06:17 +0000
Subject: Re: How to get trace of all database queries executed by php
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-93102@lists.php.net to get a copy of this message
Hi! > Is there any php extension available which help me out to give the > statistics of > all the queries execution details ? I'm not sure there is an extension doing specifically that, but any profiler or debugger extension would be able to capture database calls, and thus have access to this data. They usually would not dump this information though, so one would need to modify them to do it. Also, you may have better luck just enabling query logging in your database, most databases allow to do that. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#93102) next »