Re: How to get trace of all database queries executed by php
| From: | Walter Parker | Date: | Sat, 07 May 2016 00:07:20 +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-93103@lists.php.net to get a copy of this message | ||
On Fri, May 6, 2016 at 4:34 PM, Raja Kulasekaran <cullsin@gmail.com> wrote:
> Hi,
>
> Sorry If I am asking this question in irrelevent forum.
> Please suggest me the point of direction if not.
>
> I have encrypted php Application codebase which I may or may not have
> access.
>
> So, I would like to know how the application behaving / profiling Database
> queries through the .so or .dll level .
>
> Is there any php extension available which help me out to give the
> statistics of
> all the queries execution details ?
>
> Thanks,
> Raja K
>
This is not really the right list.
However, you might look at turning on SQL query logging/statistics on the
DB server side. The DB should be able to give you stats and feel for the
query profiles. This would be a lot less work than adding shims to the
plugins.
Walter
--
The greatest dangers to liberty lurk in insidious encroachment by men of
zeal, well-meaning but without understanding. -- Justice Louis D. Brandeis