Mysql 回溯插入,这个数据是从哪里来的?

Mysql backtrace insert, where does this data came from?

所以我知道这不是一个典型的问题,你甚至不应该遇到这个问题,因为让超过 1 个应用程序使用同一个数据库是很肮脏的。我们今天有 rest apis,但 rl 中仍然有很多旧软件,这就是为什么我必须处理这个问题。
我将损坏的数据放入 mysql table 中,但我不知道它可能来自哪里。所有新应用程序都在某些 "source" 列中留下了独特的刺痛,但腐败数据当然没有这个整数。我确实有 "ime of insert",我认为它至少应该能够回溯到服务器。

是他们在 mysql 中的任何 log/debug 选项,它向我显示了查询来自的 ip(带有时间戳)?我的 /var/log/mysql.log /var/log/mysql.err 是空的。 mysql Ver 14.14 Distrib 5.5.41Ubuntu 12.04.5

上运行

The General Query Log 中所述:

The server writes information to this log when clients connect or disconnect, and it logs each SQL statement received from clients. The general query log can be very useful when you suspect an error in a client and want to know exactly what the client sent to mysqld.

[ deletia ]

By default, the general query log is disabled. To specify the initial general query log state explicitly, use --general_log[={0|1}]. With no argument or an argument of 1, --general_log enables the log. With an argument of 0, this option disables the log. To specify a log file name, use --general_log_file=<strong><em>file_name</em></strong>. To specify the log destination, use --log-output (as described in Section 5.2.1, “Selecting General Query and Slow Query Log Output Destinations”).

If you specify no name for the general query log file, the default name is <strong><em>host_name</strong></em>.log. The server creates the file in the data directory unless an absolute path name is given to specify a different directory.

To disable or enable the general query log or change the log file name at runtime, use the global general_log and general_log_file system variables. Set general_log to 0 (or OFF) to disable the log or to 1 (or ON) to enable it. Set general_log_file to specify the name of the log file. If a log file already is open, it is closed and the new file is opened.