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_logfile0ib_logfile1ibdata1重启服务,再次生成就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 pages2015-06-24 08:53:30 7736 [Note] InnoDB: The InnoDB memory heap is disabled2015-06-24 08:53:30 7736 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions2015-06-24 08:53:30 7736 [Note] InnoDB: Memory barrier is not used2015-06-24 08:53:30 7736 [Note] InnoDB: Compressed tables use zlib 1.2.32015-06-24 08:53:30 7736 [Note] InnoDB: Not using CPU crc32 instructions2015-06-24 08:53:30 1724 InnoDB: Error: unable to create temporary file; errno: 22015-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: INNODB2015-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:\mysqltempd:\mysqltemp这个目录可以自己指定
拣尽寒枝不肯栖,寂寞沙洲。 分类: Database转载于:https://www.cnblogs.com/w-wfy/p/6011884.html