我对mysql XAMPP有问题。当我尝试启动mysql时,它失败了,这是我从mysql_error.log复制的错误消息。
InnoDB: using atomic writes.
2020-01-25 19:44:16 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2020-01-25 19:44:16 0 [Note] InnoDB: Uses event mutexes
2020-01-25 19:44:16 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-01-25 19:44:16 0 [Note] InnoDB: Number of pools: 1
2020-01-25 19:44:16 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-01-25 19:44:16 0 [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M
2020-01-25 19:44:16 0 [Note] InnoDB: Completed initialization of buffer pool
2020-01-25 19:44:16 0 [Note] InnoDB: 1 out of 1 rollback segments are active.
2020-01-25 19:44:16 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-01-25 19:44:16 0 [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-01-25 19:44:16 0 [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB.
2020-01-25 19:44:16 0 [Note] InnoDB: 10.4.8 started; log sequence number 34888; transaction id 7
2020-01-25 19:44:16 0 [Note] InnoDB: !!! innodb_force_recovery is set to 3 !!!
2020-01-25 19:44:16 0 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool
2020-01-25 19:44:16 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-01-25 19:44:16 0 [Note] InnoDB: Buffer pool(s) load completed at 200125 19:44:16
2020-01-25 19:44:16 0 [Note] Server socket created on IP: '::'.
我尝试过以下解决方案:
innodb_force_recovery = 3
当我尝试在XAMPP控制面板中启动MySql模块时。我收到以下错误消息。
[mysql]检测到状态更改:已停止[mysql]错误:MySQL意外关闭。 [mysql]这可能是由于端口阻塞,缺少依赖项,[mysql]不适当的权限,崩溃或其他方法导致的关闭。 [mysql]按下[日志]按钮查看错误日志,并检查[mysql] Windows事件查看器以获取更多线索[mysql]如果需要更多帮助,请在论坛上复制并发布[mysql]整个日志窗口
这是我从事件查看器中获得的内容:
致命错误:无法打开和锁定特权表:不正确的文件格式'roles_mapping'
答案 0 :(得分:0)
删除ibdata1会丢弃所有数据。我希望您只是开始,或者有备份。
初始化缓冲池,总大小= 16M
那太小了。在my.cnf中将其更改为200M。
答案 1 :(得分:-1)
当我在E盘中安装xampp时,我遇到了同样的问题。安装到C中可以为我解决问题