MYSQL启动失败解决方法

在MYSQL安装目录下查找.err类型的文件,比如我的mysql安装下是 mysqlServer5.5\data\JYF-PC.err。

打开后可以看到:

181209 13:38:27 [Note] Plugin 'FEDERATED' is disabled.
181209 13:38:27 InnoDB: The InnoDB memory heap is disabled
181209 13:38:27 InnoDB: Mutexes and rw_locks use Windows interlocked functions
181209 13:38:27 InnoDB: Compressed tables use zlib 1.2.3
181209 13:38:28 InnoDB: Initializing buffer pool, size = 128.0M
181209 13:38:28 InnoDB: Completed initialization of buffer pool
181209 13:38:28 InnoDB: highest supported file format is Barracuda.
181209 13:38:28  InnoDB: Waiting for the background threads to start
181209 13:38:29 InnoDB: 1.1.8 started; log sequence number 1768474
181209 13:38:29 [ERROR] MySQL: unknown variable 'explicit_defaults_for_timestamp=true'
181209 13:38:29 [ERROR] Aborting

181209 13:38:29  InnoDB: Starting shutdown...
181209 13:38:30  InnoDB: Shutdown completed; log sequence number 1768474
181209 13:38:30 [Note] MySQL: Shutdown complete

 

通过日志ERROR说明,结合自己修改了什么配置,即可定位到错误配置项,修改后重启mysql服务

停止服务:net stop mysql;

启动服务:net start mysql;

猜你喜欢

转载自blog.csdn.net/a1257427517/article/details/84927457