1

我刚刚从 Windows 7 升级到 Windows 8,但是很多设置或文件已更改,我无法再连接到 MySQL 数据库。

这是我得到的错误:

130124 23:56:02 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\Randy-PC.lower-test
130124 23:56:02 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\Randy-PC.lower-test
130124 23:56:02 [Note] Plugin 'FEDERATED' is disabled.
130124 23:56:03 InnoDB: The InnoDB memory heap is disabled
130124 23:56:03 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130124 23:56:03 InnoDB: Compressed tables use zlib 1.2.3
130124 23:56:03 InnoDB: Initializing buffer pool, size = 128.0M
130124 23:56:03 InnoDB: Completed initialization of buffer pool
130124 23:56:03  InnoDB: Operating system error number 5 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory. It may also be you have created a subdirectory
InnoDB: of the same name as a data file.
InnoDB: File name .\ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
  1. 我该怎么做才能让我的数据库重新启动并运行?

非常感谢所有帮助!

4

1 回答 1

2

最可能的解释是Windows 8升级修改了MySQL数据目录的权限。

从错误消息来看,您的 InnoDB 数据目录可能是C:\Program Files\MySQL\MySQL Server 5.5\data

使用 Windows 资源管理器导航到该目录,右键单击并打开属性,然后单击安全选项卡。运行 MySQL 服务的服务帐户需要对该目录具有完全访问权限(所有权限)。当您单击编辑时,有两列复选框用于允许和拒绝...完全控制、修改、读取和执行等)

(注意:我没有运行 Windows 8。在我的 Windows 7 系统上,数据目录是C:\ProgramData\MySQL\MySQL Server 5.5\data\

于 2013-01-25T06:45:29.673 回答