Show query in mysql_log
#1

This might be a dumb question. But how do I get to print the query in mysql_log along with the error/warning line?
Right now, it just prints the mysql error/warning, but I can't see the query. I'm running on Debian if its matter.
Reply
#2

What mysql version? If its latest, use mysql_log(ALL); after mysql connection is made
Reply
#3

if you want only errors and warnings to print on the log, then make it
PHP код:
mysql_log(ERROR WARNING); 
Reply
#4

Avoid logging ALL, it slows down your queries as well. There is flag INFO in R40+
pawn Код:
mysql_log(ERROR | WARNING | INFO);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)