在库performance_schema中有一个error_log表,表中记录的日志信息和配置文件log_error参数路径下的error.log日志记录问题相似。 以第一条2025-02-28 15:30:01.958797 时间记录为例,表error_log中记录为: Aborted connection 20525968 to db: 'pdt' user: 'root' host: '198.188.1.66' (Got an error reading communication packets). 日志文件error.log中的记录为: 2025-02-28T15:30:01.958761+08:00 20525968 [Note] [MY-010914] [Server] Aborted connection 20525968 to db: 'pdt' user: 'root' host: '198.188.1.66' (Got an error reading communication packets). 这个配置文件的控制参数是什么,怎样指定只在一个文件中记录日志信息。 数据库版本为: 配置的log_error参数为: 该参数已经生效,可以找到这个文件 |
合作电话:010-64087828
社区邮箱:greatsql@greatdb.com