我在错误日志(wamp)中得到了这个:
140205 22:57:41 InnoDB: Operating system error number 123 in a file operation.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/operating-system-error-codes.html
InnoDB: File name C:\wampin\mysql\mysql5.5.8\data\ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
我不明白还有什么要做,因为我已取消注释命令并适当地改变了路径:
# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir = C:\wamp\bin\mysql\mysql5.5.8\data/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = C:\wamp\bin\mysql\mysql5.5.8\data/
innodb_log_arch_dir = C:\wamp\bin\mysql\mysql5.5.8\data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 50M
innodb_additional_mem_pool_size = 10M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 50M
innodb_log_buffer_size = 80M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
请告知。
答案 0 :(得分:0)
在配置文件中,您需要使用双反斜杠(\\
)将路径指定为转义 Windows风格的路径,例如:
innodb_data_home_dir = C:\\wamp\\bin\\mysql\\mysql5.5.8\\data\\
在您的情况下,\b
正在被替换,因为它是有效的控制代码,导致您的路径无效。我相信你也可以使用正斜杠(/
)而不是双反斜杠(\\
)。
答案 1 :(得分:0)
在my.ini中,您应该将所有DOS目录分隔符更改为UNIX目录分隔符,所以
C:\wamp\bin\mysql\mysql5.5.8\data/
应该是
C:/wamp/bin/mysql/mysql5.5.8/data/
答案 2 :(得分:0)
也许您可以查看您的wamp服务器中的my.init文件。在此文件中,有一个注释部分允许您使用INNODB引擎。这个对我有用。