Viewing earlier Query log - MySQL

心不动则不痛 提交于 2019-12-23 03:46:07

问题


I want to see mysql queries [history, log] [select,insert,update,...] [which i executed] !
Can anyone help me on this ?

I'm using MySQL Version : 5.5.8 [which i got from WAMP]
I tried changing settings from console, and failed ! [change gets lost after restart]
i've asked it before, but no working answer !


回答1:


Sourav's answer no longer works. As of July 2013, you need:

general-log=1
general-log-file = "C:\wamp\logs\mysql_general.log"



回答2:


Change the following settings in my.ini:

[mysqld]  
port=3306    
long_query_time = 1  
slow_query_log = 1  
slow_query_log_file = "E:/wamp/logs/slowquery.log"  
log = "E:/wamp/logs/genquery.log"


来源:https://stackoverflow.com/questions/5813360/viewing-earlier-query-log-mysql

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