SA-MP Forums Archive
Show query in mysql_log - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Show query in mysql_log (/showthread.php?tid=643811)



Show query in mysql_log - Mokless - 28.10.2017

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.


Re: Show query in mysql_log - StrikerZ - 28.10.2017

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


Re: Show query in mysql_log - Zeth - 28.10.2017

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



Re: Show query in mysql_log - Konstantinos - 28.10.2017

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