MySQL 5.7的Windows服务突然无法启动。错误1067

时间:2018-04-03 19:50:54

标签: mysql innodb windows-7-x64

我在Win7机器上有一个MySQL5.7主数据库,可以复制到Linux从属设备。

似乎在工作了大约一个月后,MySQL 5.7服务器的Windows服务无法启动。从services.msc运行它会出现错误1067。

这是MySQL错误日志:

2018-04-03T19:25:18.722913Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-04-03T19:25:18.722913Z 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-03T19:25:18.738515Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.17-log) starting as process 3508 ...
2018-04-03T19:25:18.785323Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-04-03T19:25:18.785323Z 0 [Note] InnoDB: Uses event mutexes
2018-04-03T19:25:18.785323Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2018-04-03T19:25:18.785323Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-04-03T19:25:18.785323Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB
2018-04-03T19:25:18.785323Z 0 [Note] InnoDB: Number of pools: 1
2018-04-03T19:25:18.785323Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2018-04-03T19:25:18.800926Z 0 [Note] InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M
2018-04-03T19:25:18.800926Z 0 [Note] InnoDB: Completed initialization of buffer pool
2018-04-03T19:25:50.552217Z 0 [Warning] InnoDB: Retry attempts for reading partial data failed.
2018-04-03T19:25:50.552217Z 0 [ERROR] InnoDB: Tried to read 1048576 bytes at offset 2097152, but was only able to read 0
2018-04-03T19:25:50.552217Z 0 [ERROR] InnoDB: File (unknown): 'read' returned OS error 0. Cannot continue operation
2018-04-03T19:25:50.552217Z 0 [ERROR] InnoDB: Cannot continue operation.

如果需要更多信息,请告诉我,并提前感谢您的帮助。

更新(2018-04-04):

屏幕截图:Windows Services for MySQL

屏幕截图:Change to local account

2 个答案:

答案 0 :(得分:0)

如果服务是NETWORK_SERVICE,则服务没有足够的权限启动,因此授予FULL CONTROL或更改为LOCAL SERVICE

答案 1 :(得分:0)

我在博客中写了一篇关于它的文章。 manejandodatos.es/error1067

当服务器关闭,您修改数据目录时,会发生此错误。这是用户的问题。