10

从几天前开始,我的 Windows 机器上的 MySQL 服务器没有成功关闭自己。我在 MySQL 错误日志中发现了这些行的多个实例:

InnoDB: Operating system error number 32 in a file operation.
InnoDB: The error means that another program is using InnoDB's files.
InnoDB: This might be a backup or antivirus software or another instance
InnoDB: of MySQL. Please close it to get rid of this error.

我有很多可用空间,服务器安装了几个月,版本是Windows XP SP3上的5.1.22-rc-community-log,并且我只使用一个Windows帐户来创建和执行MySQL服务。

按照 Greg 的回答,我发现ProcessExplorer有另一个 MySQL 服务以不同的名称运行。我杀了它,一切都运行良好。

4

3 回答 3

11

如果该文件正在被另一个程序使用,那么Process Explorer可以帮助您追踪哪个程序打开了它。我假设您已经检查过您只运行了一份 MySQL 副本。

于 2008-11-12T11:31:27.003 回答
4

听起来像是冲突。确保停止 mysqld 服务,然后仔细检查它是否真的不再运行,然后重新启动服务。此外,当它备份时,请务必检查您的桌子,看看是否有任何损坏。

我的假设是基于 MySQL 文档中的操作系统错误代码

于 2008-11-12T11:34:18.447 回答
3

您可以按照以下步骤操作:

  1. 打开任务管理器
  2. 杀死mysqld.exe进程。
  3. cd E:\apps\db\mysql-5.5.25-win32\bin
  4. 跑:mysqld --install MySQL
  5. 跑:mysqladmin -u root start
于 2012-06-26T07:48:15.840 回答