简体   繁体   English

如何还原my.ini文件?

[英]how to restore a my.ini file?

I changed the application to open the my.ini file by the command "open with". 我通过“打开方式”命令将应用程序更改为打开my.ini文件。
Now my my.ini file is unreadable (no newline) and the mysqld service cannot start. 现在,我的my.ini文件不可读(没有换行符),并且mysqld服务无法启动。
Is it possible to restore the file ? 是否可以还原文件?

Never EVER use the registry to manually remove programs. 永远不要使用注册表来手动删除程序。 Your only hope is to uninstall mysql and reinstall it. 您唯一的希望是卸载mysql并重新安装。 If you encounter issues with that, you may need to contact customer support. 如果您遇到此问题,则可能需要联系客户支持。

If you made a backup of the registry before changing it, restore it. 如果在更改注册表之前备份了注册表,请还原它。

If you messed up the registry, you may not be able to get MySQL reinstalled using MSI 如果搞砸了注册表,则可能无法使用MSI重新安装MySQL

However, not all hope is lost. 但是,并非所有希望都消失了。

When it comes to Windows, I hate MSI installation with a passion. 对于Windows,我非常讨厌MSI安装。 I always download the no-install zip file instead. 我总是下载免安装的zip文件。 Back on Feb 10, 2011, I wrote up a ServerFault post on how to configure a no-install MySQL setup . 早在2011年2月10日,我就如何配置免安装MySQL设置撰写了ServerFault帖子

With regard to the my.ini, maybe you can use another text editor that can read Linux/Unix based files. 关于my.ini,也许您可​​以使用另一个可以读取基于Linux / Unix的文件的文本编辑器。 I sometimes use the Windows version of vi to read Linux files in Windows . 有时我会使用Windows的vi版本在Windows中读取Linux文件 See if you can use WinVi to open the my.ini. 查看是否可以使用WinVi打开my.ini。

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

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