简体   繁体   English

如何在Windows上的MySQL上运行innodb_force_recovery

[英]How to run innodb_force_recovery on MySQL on Windows

I need to start MySQL in force recovery mode. 我需要在强制恢复模式下启动MySQL。 I've seen the documentation on innodb_force_recovery here : but it suggests adding a line to my "option file". 我在这里看过innodb_force_recovery的文档:但它建议在我的“选项文件”中添加一行。

I don't know what the option file is, nor where it is in Windows. 我不知道选项文件是什么,也不知道它在Windows中的位置。 I'm basically trying to follow this article here but without using XAMPP and am stuck on the part about starting MySQL in recovery mode. 我基本上试图在这里关注这篇文章但没有使用XAMPP而且我坚持在恢复模式下启动MySQL的部分。

Can anyone tell me how to start MySQL with 'innodb_force_recovery = 6' on Windows 7? 谁能告诉我如何在Windows 7上使用'innodb_force_recovery = 6'启动MySQL?

Many thanks for any pointers folks. 非常感谢任何人们的指点。

I found it. 我找到了。 I was able to add it as a rule in this file: 我能够在此文件中添加它作为规则:

C:\Program Files\MySQL\MySQL Server 5.1\my.ini

which I had to edit with admin privileges in Notepad. 我必须在记事本中使用管理员权限进行编辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM