MySQL不会在错误日志中显示错误

时间:2014-03-14 20:52:11

标签: mysql debugging

在MySQL中安装UDF遇到一些麻烦(Cannot install MySQL UDF)后,我面临另一个问题。执行该函数时,我在查询期间得到“与MySQL服务器的连接失败”错误(错误2013)。错误日志记录已启用,但我在日志文件中看不到任何错误消息。 my.ini配置文件在 mysqld 下具有以下日志属性:

log-output=FILE
general-log=0
general_log_file="mysql-general-log-file.log"
slow-query-log=1
slow_query_log_file="mysql-slow-query-log-file.log"
long_query_time=10
log="mysql.log"
# Error Logging.
log-error="mysql-error.log"
log-warnings=2

这是 mysql-error.log 输出:

140314 21:29:25 [Note] Plugin 'FEDERATED' is disabled.
140314 21:29:25 InnoDB: The InnoDB memory heap is disabled
140314 21:29:25 InnoDB: Mutexes and rw_locks use Windows interlocked functions
140314 21:29:25 InnoDB: Compressed tables use zlib 1.2.3
140314 21:29:25 InnoDB: Initializing buffer pool, size = 307.0M
140314 21:29:25 InnoDB: Completed initialization of buffer pool
140314 21:29:25 InnoDB: highest supported file format is Barracuda.
140314 21:29:26  InnoDB: Waiting for the background threads to start
140314 21:29:27 InnoDB: 5.5.32 started; log sequence number 9975593
140314 21:29:27 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
140314 21:29:27 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
140314 21:29:27 [Note] Server socket created on IP: '0.0.0.0'.
140314 21:29:27 [Note] Event Scheduler: Loaded 0 events
140314 21:29:27 [Note] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: ready for connections.
Version: '5.5.32-log'  socket: ''  port: 3306  MySQL Community Server (GPL) 

我还尝试通过在代码中添加一些打印命令来调试UDF本身,例如

fprintf(stderr, "%s", "Launching JVM\n");
fflush(stderr);

不幸的是,这也不起作用。我还有哪些其他选项可以追踪问题?

0 个答案:

没有答案