即使没有使用端口 3306 的服务也无法启动 mysql [英] Couldn't start mysql even when there is no services using port 3306

查看:146
本文介绍了即使没有使用端口 3306 的服务也无法启动 mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 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:xamppmysqldataibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-01-25 19:44:16 0 [Note] InnoDB: File 'C:xamppmysqldataibtmp1' 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:xamppmysqldataib_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:

  1. 删除数据文件夹中的 ibdata1.
  2. 在 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] 按 Logs 按钮查看错误日志并检查 [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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆