我在哪里可以找到文件my.cnf或my.ini文件?

问题描述:

我读过MySQL复制,我需要改变一些配置,但我找不到文件my.cnf或my.ini。我不知道我有哪个MySQL版本,但很久以前我已经下载了它,作为.zip。我的盒子运行Windows 7 64. 我在哪里可以找到这个文件?我应该创建它吗?哪里? 谢谢。我在哪里可以找到文件my.cnf或my.ini文件?

+0

您可以在这里找到答案: http://*.com/questions/1712646/i-can-not-find-my-cnfmysql-configuration-file-on-my-computer – JamesHalsall

+0

你可以在之前留下的评论中找到答案,它也在serverfault.com和superuser.com上提出,这就是为什么我没有自动迁移它的原因。 –

我目前没有窗口,但我认为它应该存在于C:\WINDOWS\目录中。

mysql --help在GNU/Linux调用帮助它显示(节选):

Default options are read from the following files in the given order: 
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf 

也许你可以在Windows相同的信息了。

btw:与mysql --version你可以得到你当前的版本。