Win7系统中MySQL服务无法启动的解决方法

Win7系统中提示:本地无法启动MySQL服务,报的错误:1067,进程意外终止的解决方法。
在本地计算机无法启动MYSQL服务错误1067进程意外终止。
这种情况一般是my.ini文件配置出错了
1、首先找到这个文件: Win7下的默认安装路径
C:\ProgramData\MySQL\MySQL Server 5.6\my.ini
打开此文件找到:default-storage-engine=INNODB
将default-storage-engine的值改为:MYISAM。
2、但是还有问题:因为以前你创建的那些数据库还是存在的(如果没有删除),
默认路径:
C:\ProgramData\MySQL\MySQL Server 5.6\data
这时可能会出来这种问题:
第一次设置的efault-storage-engine与第二次设置的值不一样,可能会导致
(1)发现无法选择添加事务支持数据引擎InnoDB
(2)可能会说不支持InnoDB等
解决方法:
删除:C:\ProgramData\MySQL\MySQL Server 5.6\data目录下的
ib_logfile0
ib_logfile1
ibdata1
重启服务,再次生成就OK了
3、如果还是不行,检查
C:\ProgramData\MySQL\MySQL Server 5.6\data 这个目录中的错误日志(扩展名我为.err),显示如下内容:
2015-06-24 08:53:30 7736 [Note] Plugin 'FEDERATED' is disabled.
2015-06-24 08:53:30 1724 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2015-06-24 08:53:30 7736 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-06-24 08:53:30 7736 [Note] InnoDB: The InnoDB memory heap is disabled
2015-06-24 08:53:30 7736 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-06-24 08:53:30 7736 [Note] InnoDB: Memory barrier is not used
2015-06-24 08:53:30 7736 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-06-24 08:53:30 7736 [Note] InnoDB: Not using CPU crc32 instructions
2015-06-24 08:53:30 1724 InnoDB: Error: unable to create temporary file; errno: 2
2015-06-24 08:53:30 7736 [ERROR] Plugin 'InnoDB' init function returned error.
2015-06-24 08:53:30 7736 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-06-24 08:53:30 7736 [ERROR] Unknown/unsupported storage engine: INNODB
2015-06-24 08:53:30 7736 [ERROR] Aborting
其中核心提示是这句,临时文件无法创建:
2015-06-24 08:53:30 1724 InnoDB: Error: unable to create temporary file; errno: 2

因此查看my.ini
[mysqld]区段内加入:
#自己指定的临时文件目录
tmpdir=d:\mysqltemp
d:\mysqltemp这个目录可以自己指定

posted @ 2015-06-24 10:19  zhouhb  阅读(42279)  评论(0编辑  收藏  举报