I need to make query log from only one table in MySQL database.
I have lot of sites connected to my database, so I can't set query log directly on mysql.
I have error which occurs on average once a week. A strange coincidence.
I want to save logs from whole page.
How to set up query log to file on CakePHP 2.x?
Asked
Active
Viewed 222 times
0

mateusz.szymborski
- 1,590
- 1
- 9
- 10
-
Consider looking at this thread, should apply to cakePHP2 http://stackoverflow.com/questions/4721052/how-to-log-sql-queries-to-a-log-file-with-cakephp – JGarberi Jul 10 '14 at 13:54
-
I try to use this method. – mateusz.szymborski Jul 10 '14 at 13:56
-
I tried method from [THERE](http://volod-0x16.livejournal.com/10923.html). But I get error Datasource class could not be found. – mateusz.szymborski Jul 10 '14 at 14:07
-
And I don't have folder dbo and any driver there(because its 2.x). How to do this? – mateusz.szymborski Jul 10 '14 at 14:14