Log warnings into a table

白昼怎懂夜的黑 提交于 2020-01-03 05:05:13

问题


I found the following code on mysql forge site.

MySQL Proxy : An easy way to log all warnings and errors into a MySQL table.

http://forge.mysql.com/tools/tool.php?id=133

This may sound too basic, but from where do I start if I need this functionality.


回答1:


Here you have more details about MySQL proxy scripting.

What you need to do with the script you linked is just run it on MySQL database and it will do all the magic for you. It's a complete server side solution so you don't have to worry about logging errors in your client application. MySQL will automatically run read_query function for every row returned and read_query_result for every set returned.



来源:https://stackoverflow.com/questions/1276144/log-warnings-into-a-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!