我启用了主机的常规日志来记录事务。在user_host列中,我看到一个奇怪的条目为[] @ []。我知道这个列应该代表从中访问的主机和IP。这[] @ []是什么意思?
MariaDB [(无)]> select * from mysql.general_log limit 20; + ---------------------------- + -------------------- ---------- ----------- + + ----------- -------------- + + ------------------------------------------- + | event_time | user_host | thread_id | server_id | command_type |论点| + ---------------------------- + -------------------- ---------- ----------- + + ----------- -------------- + + ------------------------------------------- + | 2016-11-03 16:03:46.626159 | [] @ [] | 8 | 2001 |查询|开始| | 2016-11-03 16:03:46.635936 | [] @ [] | 8 | 2001 |查询| COMMIT / * implicit,来自Xid_log_event / | | 2016-11-03 16:03:46.676147 | [] @ [] | 8 | 2001 |查询|开始| | 2016-11-03 16:03:46.676273 | [] @ [] | 8 | 2001 |查询|来自Xid_log_event / |的COMMIT / 隐式 | 2016-11-03 16:03:46.780307 | [] @ [] | 8 | 2001 |查询|开始| | 2016-11-03 16:03:46.780388 | [] @ [] | 8 | 2001 |查询|来自Xid_log_event / |的COMMIT / 隐式 | 2016-11-03 16:03:46.905406 | [马林] @ [10.93.4.71] | 51314889 | 2001 |连接| marin@10.93.4.71匿名于| | 2016-11-03 16:03:46.905440 |马林[马林] @ [10.93.4.71] | 51314889 | 2001 |查询| SET NAMES utf8 | | 2016-11-03 16:03:46.905588 |马林[马林] @ [10.93.4.71] | 51314889 | 2001 |查询|选择@@ version_comment limit 1 | | 2016-11-03 16:03:46.905855 |马林[马林] @ [10.93.4.71] | 51314889 | 2001 |查询| SHOW PROCESSLIST | | 2016-11-03 16:03:46.906191 |马林[马林] @ [10.93.4.71] | 51314889 | 2001 |退出| | | 2016-11-03 16:03:46.937106 | [] @ [] | 8 | 2001 |查询|开始| | 2016-11-03 16:03:46.937243 | [] @ [] | 8 | 2001 |查询|来自Xid_log_event / |的COMMIT / 隐式 | 2016-11-03 16:03:46.988152 | [] @ [] | 8 | 2001 |查询|开始| | 2016-11-03 16:03:46.988237 | [] @ [] | 8 | 2001 |查询|来自Xid_log_event / |的COMMIT / 隐式 | 2016-11-03 16:03:47.196839 | [] @ [] | 8 | 2001 |查询|开始| | 2016-11-03 16:03:47.197648 | [] @ [] | 8 | 2001 |查询|来自Xid_log_event * / |的COMMIT / 隐式 | 2016-11-03 16:03:47.958601 | [马林] @ [10.93.4.71] | 51314890 | 2001 |连接| marin@10.93.4.71匿名于| | 2016-11-03 16:03:47.958635 |马林[马林] @ [10.93.4.71] | 51314890 | 2001 |查询| SET NAMES utf8 | | 2016-11-03 16:03:47.958884 |马林[马林] @ [10.93.4.71] | 51314890 | 2001 |查询|选择@@ version_comment limit 1 | + ---------------------------- + -------------------- ---------- ----------- + + ----------- -------------- + + ------------------------------------------- + 20行(0.00秒)
提前致谢。
答案 0 :(得分:0)
嗨我认为你正在使用master slave在mysql中,这个过程由Mysql自己运行。所以没有为此做出的记录。
implicit, from Xid_log_event is used in master slave data commit