cheug 2018-04-26 02:36 采纳率: 0%
浏览 1637
已结题

Windows版Mysql服务意外停止error number 23

MySQL日志如下:求帮助:
场景:查询一段很耗的sql会引起mysql服务非正常关闭(手动重启是ok的),如下异常日志,mysql需要怎么设置;
mysql 配置文件:
图片说明
2018-04-26T02:15:05.557394Z 24 [ERROR] InnoDB: Operating system error number 23 in a file operation.
2018-04-26T02:15:05.557394Z 24 [Note] InnoDB: Some operating system error numbers are described at http://dev.mysql.com/doc/refman/5.7/en/operating-system-error-codes.html
2018-04-26T02:15:05.572994Z 24 [ERROR] InnoDB: File .\mfg_db\sn_scan_ht.ibd: 'Windows aio' returned OS error 123. Cannot continue operation
2018-04-26T02:15:05.572994Z 24 [ERROR] InnoDB: Cannot continue operation.
2018-04-26T02:15:07.772598Z 0 [Note] InnoDB: FTS optimize thread exiting.
2018-04-26T02:16:54.819986Z 24 [Warning] InnoDB: 13 threads created by InnoDB had not exited at shutdown!
2018-04-26T02:17:11.605615Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-04-26T02:17:11.605615Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2018-04-26T02:17:11.605615Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2018-04-26T02:17:11.605615Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-04-26T02:17:11.605615Z 0 [Note] MySQL (mysqld 5.7.17-log) starting as process 10868 ...
2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: Uses event mutexes
2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-04-26T02:17:11.621215Z 0 [Note] InnoDB: Number of pools: 1
2018-04-26T02:17:11.636815Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2018-04-26T02:17:11.636815Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2018-04-26T02:17:11.652415Z 0 [Note] InnoDB: Completed initialization of buffer pool
2018-04-26T02:17:11.730415Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2018-04-26T02:17:11.746015Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 22526427804
2018-04-26T02:17:11.746015Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 22526427813
2018-04-26T02:17:11.746015Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 22526427813
2018-04-26T02:17:11.761615Z 0 [Note] InnoDB: Database was not shutdown normally!
2018-04-26T02:17:11.761615Z 0 [Note] InnoDB: Starting crash recovery.
2018-04-26T02:17:11.886416Z 0 [Note] InnoDB: Last MySQL binlog file position 0 1457173, file name master-bin.000024
2018-04-26T02:17:12.089216Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-04-26T02:17:12.089216Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-04-26T02:17:12.089216Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: 5.7.17 started; log sequence number 22526427813
2018-04-26T02:17:12.104816Z 0 [Note] InnoDB: Loading buffer pool(s) from E:\DB_Data\MySql\ib_buffer_pool
2018-04-26T02:17:12.104816Z 0 [Note] Plugin 'FEDERATED' is disabled.
2018-04-26T02:17:12.120416Z 0 [Note] Recovering after a crash using master-bin
2018-04-26T02:17:12.151616Z 0 [Note] Starting crash recovery...
2018-04-26T02:17:12.151616Z 0 [Note] Crash recovery finished.
2018-04-26T02:17:12.214016Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2018-04-26T02:17:12.214016Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2018-04-26T02:17:12.214016Z 0 [Note] IPv6 is available.
2018-04-26T02:17:12.214016Z 0 [Note] - '::' resolves to '::';
2018-04-26T02:17:12.214016Z 0 [Note] Server socket created on IP: '::'.
2018-04-26T02:17:12.713217Z 0 [Note] Event Scheduler: Loaded 0 events
2018-04-26T02:17:12.713217Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check.
2018-04-26T02:17:12.713217Z 0 [Note] Beginning of list of non-natively partitioned tables
2018-04-26T02:17:12.775617Z 0 [Note] End of list of non-natively partitioned tables
2018-04-26T02:17:12.775617Z 0 [Note] MySQL: ready for connections.
Version: '5.7.17-log' socket: '' port: 3306 MySQL Community Server (GPL)
2018-04-26T02:17:13.415218Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180426 10:17:13

  • 写回答

1条回答

  • threenewbee 2018-04-26 02:41
    关注

    errno.23 is: Too many open files in system 系统打开文件太多

    关闭杀毒软件,重启一下看看。

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!