Introduction
Due to a recent discussion about the morality of content of vBSEO customers and the encryption of php source code, someone asked me to elaborate on how to review MySQL queries being executed in scripts.
Plain text logging
To be able to do so, you will need to have access to the configuration file of the MySQL server where your database resides on. I have not tested it on the 5.0 version of this software, but in the 4.* series this is possible. According to my default configuration file, this feature also will be depricated in version 5.0.
Let me quote a part of the my.cnf file we are using for our server.
As you can see here, it only required to uncomment the "log" setting, modifying the appropriate path to the logfile and a restart to enable logging.Originally Posted by my.cnf
Logging of queries is a server intensive process, so it really is only recommended for debugging purpose.
For more information on the subject, these documents i can recommend:
References
- my.cnf
- http://dev.mysql.com/
Regards,
xb_


LinkBack URL
About LinkBacks





Reply With Quote