mysql:InnoDB:无法继续操作

mysql:InnoDB:无法继续操作,mysql,Mysql,我已经在Windows7环境中安装了mysql。 当我尝试从命令行启动服务器时 as:mysqld--user=root 我得到以下信息: 120914 15:47:04 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\SFO1502128830A.lower-test 120914 15:47:04 [Warning] Can't create test file C:\Program

我已经在Windows7环境中安装了mysql。 当我尝试从命令行启动服务器时 as:mysqld--user=root

我得到以下信息:

120914 15:47:04 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\SFO1502128830A.lower-test
120914 15:47:04 [Warning] Can't create test file C:\Program Files\MySQL\MySQL Server 5.5\data\SFO1502128830A.lower-test
120914 15:47:04 [Note] Plugin 'FEDERATED' is disabled.
120914 15:47:04 InnoDB: The InnoDB memory heap is disabled
120914 15:47:04 InnoDB: Mutexes and rw_locks use Windows interlocked functions
120914 15:47:04 InnoDB: Compressed tables use zlib 1.2.3
120914 15:47:04 InnoDB: Initializing buffer pool, size = 128.0M
120914 15:47:04 InnoDB: Completed initialization of buffer pool
120914 15:47:04  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: 'create'.
InnoDB: Cannot continue operation.
请各位指教,, 谢谢,

试试这个:
以管理员身份运行Windows CMD Prompt并执行MySql命令。

错误的哪一部分意味着mysqld没有目录的访问权限您不明白吗?运行MySQL的用户在C:\Program Files\MySQL\MySQL Server 5.5\data\中没有所需的权限,这是Windows 7导致此问题的原因。最简单的修复方法:将数据目录移动到类似于
d:\mysqldata
或类似的位置。您可能需要通过管理员权限启动。这就是答案