即使没有使用端口3306的服务也无法启动mysql [英] Couldn't start mysql even when there is no services using port 3306
问题描述
我对mysql XAMPP有问题.当我尝试启动mysql时,它失败了,这是我从mysql_error.log复制的错误消息.
I have an issue with mysql XAMPP. When I try to start mysql, it failed and here's the error message that I copied from 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: '::'.
我尝试过以下解决方案:
The following solutions I have tried:
- 删除数据文件夹中的ibdata1.
- 在my.ini中的mysqld下面添加
innodb_force_recovery = 3
当我尝试在XAMPP控制面板中启动MySql模块时.我收到以下错误消息.
When I try to start MySql module in XAMPP Control Panel. I received the following error message.
[mysql]检测到状态更改:已停止[mysql]错误:MySQL意外关闭.[mysql]这可能是由于端口阻塞,缺少依赖项,[mysql]不适当的权限,崩溃或其他方法导致的关闭.[mysql]按下[日志]按钮查看错误日志,并检查[mysql] Windows事件查看器以获取更多线索[mysql]如果需要更多帮助,请在论坛上复制并发布[mysql]整个日志窗口
[mysql] Status change detected: stopped [mysql] Error: MySQL shutdown unexpectedly. [mysql] This may be due to a blocked port, missing dependencies, [mysql] improper privileges, a crash, or a shutdown by another method. [mysql] Press the Logs button to view error logs and check [mysql] the Windows Event Viewer for more clues [mysql] If you need more help, copy and post this [mysql] entire log window on the forums
这是我从事件查看器中获得的内容:
Here is what I got from Event Viewer:
致命错误:无法打开和锁定特权表:不正确的文件格式'roles_mapping'
Fatal error: Can't open and lock privilege tables: Incorrect file format 'roles_mapping'
推荐答案
删除ibdata1会丢弃所有数据.我希望您只是开始,或者有备份.
Deleting ibdata1 has the effect of throwing away all your data. I hope that either you are just starting, or you have a backup.
初始化缓冲池,总大小= 16M
Initializing buffer pool, total size = 16M
那太小了.在my.cnf中将其更改为200M.
That is terribly tiny. Change it in my.cnf to, say, 200M.
这篇关于即使没有使用端口3306的服务也无法启动mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!