我试图使用XAMPP设置MySQL服务器,它无法正常工作,我收到此错误:
2014-10-28 14:14:38 3768 [Note] Plugin 'FEDERATED' is disabled.
2014-10-28 14:14:38 588 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.
2014-10-28 14:14:38 3768 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-10-28 14:14:38 3768 [Note] InnoDB: The InnoDB memory heap is disabled
2014-10-28 14:14:38 3768 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-10-28 14:14:38 3768 [Note] InnoDB: Memory barrier is not used
2014-10-28 14:14:38 3768 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-10-28 14:14:38 3768 [Note] InnoDB: Not using CPU crc32 instructions
2014-10-28 14:14:38 3768 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2014-10-28 14:14:38 3768 [Note] InnoDB: Completed initialization of buffer pool
2014-10-28 14:14:38 3768 [ERROR] InnoDB: C:\xampp\mysql\data\ibdata1 can't be opened in read-write mode
2014-10-28 14:14:38 3768 [ERROR] InnoDB: The system tablespace must be writable!
2014-10-28 14:14:38 3768 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-28 14:14:38 3768 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-28 14:14:38 3768 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-28 14:14:38 3768 [ERROR] Aborting
从mysql.log中提取
我确实尝试使用AppleWS重新安装,以及我在此处找到的一些修复程序。他们都没有工作。
答案 0 :(得分:4)
这些行:
2014-10-28 14:14:38 3768 [ERROR] InnoDB: C:\xampp\mysql\data\ibdata1 can't be opened in read-write mode
2014-10-28 14:14:38 3768 [ERROR] InnoDB: The system tablespace must be writable!
..表示权限问题。
检查C:\ xampp \ mysql \ data \ ibdata1上的权限,并确保您运行服务器的任何用户都具有该文件夹的读/写权限。
答案 1 :(得分:1)
我按照以下步骤解决了这个问题:
C:\xampp\mysql\data\
移到了另一个目录。C:\xampp\mysql\data\
。此方法不会使我丢失配置和数据库
答案 2 :(得分:0)
只需删除ibdata1
文件夹中的iblog
和C:\xampp\mysql\data\
个文件。