COMMIT/*!*/; # at 767 #110126 16:16:43 server id 1 end_log_pos 872 Query thread_id=19 exec_time=0 error_code=0 use test/*!*/; SET TIMESTAMP=1296029803/*!*/; create table wsj(id int unsigned not null) -- BEGIN /*!*/; # at 940 #110126 16:16:57 server id 1 end_log_pos 1033 Query thread_id=19 exec_time=0 error_code=0 SET TIMESTAMP=1296029817/*!*/; insert into wsj(id) values (1) -- BEGIN /*!*/; # at 1128 #110126 16:16:58 server id 1 end_log_pos 1221 Query thread_id=19 exec_time=0 error_code=0 SET TIMESTAMP=1296029818/*!*/; insert into wsj(id) values (2)
2.2 用户确认
thread_id 确认以后,找到元凶就只是一条sql语句的问题了。
mysql> select * from accesslog where id=19; +----+---------------------+---------------------+-----------+ | id | time | localname | matchname | +----+---------------------+---------------------+-----------+ | 19 | 2011-01-26 16:15:54 | test@10.163.164.216 | test@% | +----+---------------------+---------------------+-----------+ 1 row in set (0.00 sec)