2012-09-14 76 views
4

我在Windows 7环境下安装了mysql。 当我试图启动命令行 的服务器:mysqld的--user =根mysql:InnoDB:无法继续运行

我得到以下信息:

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. 

请指点,谢谢 ,

+1

“错误意味着mysqld没有对目录的访问权限”,你知道吗?正在运行的用户MySQL在C:\ Program Files \ MySQL \ MySQL Server 5.5 \ data \中没有所需的权限,这是Windows 7 [UAC](http://en.wikipedia.org/wiki/User_Account_Control )将成为的原因。最简单的修复:将你的数据目录移动到'd:\ mysqldata'或类似的东西。 – RobIII

+0

谢谢你的帮助。 – beetri

+0

它可能需要通过管理员权限启动 – 2012-12-24 00:27:51

回答

2

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