Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Configuring config.php for DB output
-
- Rank: Registered User
- Registered: Nov 27, 2006
- Last visit: Jan 13, 2009
- Posts: 11
I would like to know how i configure config/config.php in order for zikula to log all SQL statements preferably in the table zikula_sc_log_event. -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
Better have a lot of disk space. Not sure how to do that but that thing will fill up rather quickly for a site with even decent activity. -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
You should look into the ADOdb logging functions, if you require clever SQL debugging. However, as far as I know there is no interface in DBUtil / Zikula for this.
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
- Rank: Registered User
- Registered: Nov 27, 2006
- Last visit: Jan 13, 2009
- Posts: 11
I was hoping some of the settings in config.php would enable me to do just that, more precisely this part but i can't seem to get it to work:
// ----------------------------------------------------------------------
// Debugging/Tracing settings
// ----------------------------------------------------------------------
$PNConfig['Debug']['debug'] = 0; //
$PNConfig['Debug']['pagerendertime'] = 0; // display page render time, 0 to disable
$PNConfig['Debug']['sql_adodb'] = 0; // adodb debug flag, generates lots of print output
$PNConfig['Debug']['sql_count'] = 0; // count SQL statements, 0 to disable
$PNConfig['Debug']['sql_time'] = 0; // time SQL statements, 0 to disable
$PNConfig['Debug']['sql_detail'] = 0; // collect executed SQL statements, 0 to disable
$PNConfig['Debug']['sql_data'] = 0; // collect selected data, 0 to disable
$PNConfig['Debug']['sql_user'] = 0; // user filter, 0 for all, any other number is a user-id, can also be an array -
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
usually this
Code
$PNConfig['Debug']['debug'] = 1; //
$PNConfig['Debug']['sql_adodb'] = 1;
should be enought, but i don't know if ALL the queries are displayed
if you wan't a more rustic (and working) way to do it , you can simply look for "adodb-mysql.inc.php" and
before
Code
mysql_query($sql,$this->_connectionID);
around line 507
add
Code
echo $sql."<br/>";// or any code to log the output in a different way
edited by: mumuri, Jan 14, 2009 - 04:12 AM
- Moderated by:
- Support
