首页 >> 知识 >> mysql.general

mysql.general

The mysql.general_log table stores the contents of the General Query Log if general logging is active and the output is being written to table (see Writing logs into tables).

It contains the following fields:

FieldTypeNullKeyDefaultDescriptionevent_timetimestamp(6)NOCURRENT_TIMESTAMP(6)Time the query was executed.user_hostmediumtextNONULLUser and host combination.thread_idint(11)NONULLThread id.server_idint(10) unsignedNONULLServer id.command_typevarchar(64)NONULLType of command.argumentmediumtextNONULLFull query.ExampleSELECT * FROM mysql.general_logG*************************** 1. row *************************** event_time: 2014-11-11 08:40:04.117177 user_host: root[root] @ localhost [] thread_id: 74 server_id: 1command_type: Query argument: SELECT * FROM test.s*************************** 2. row *************************** event_time: 2014-11-11 08:40:10.501131 user_host: root[root] @ localhost [] thread_id: 74 server_id: 1command_type: Query argument: SELECT * FROM mysql.general_log...
网站地图