php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

Show info of MySQL query

Open NothingCtrl opened this issue 10 years ago • 3 comments

My phpDebugbar not show detail info like demo. Does it normal when only show the time of query?

14-11-2014 1-12-42 pm

NothingCtrl avatar Nov 14 '14 06:11 NothingCtrl

Which collector are you running? DebugBar\DataCollector\PDO\PDOCollector?

Not every collector does the same thing, for example, my Laravel debugbar doesn't show all this information because it uses the Laravel query logger instead of the PDO connection directly.

barryvdh avatar Nov 14 '14 07:11 barryvdh

Yes, here is my code: 14-11-2014 2-56-57 pm

I tested, if I used mysql prepared statements (not direct query), phpdebugbar could show me a number of rows, but it did not show the memory.

14-11-2014 3-06-23 pm

NothingCtrl avatar Nov 14 '14 08:11 NothingCtrl

Hello, I have a legacy project that uses Kohana v2 and would like to know how can I log the SQL? Could help? Thanks

garbinmarcelo avatar Jan 10 '23 01:01 garbinmarcelo