Where can I find the file my.cnf or my.ini file? [closed]

与世无争的帅哥 提交于 2019-12-10 14:42:51

问题


I've read about MySQL replication and i need to change some configuration but I can't find the file my.cnf or my.ini. I don't know which MySQL version I have but I've downloaded it a long time ago, as a .zip. My box runs Windows 7 64. Where can i find this file? Should I create it? Where? Thank you.


回答1:


I do not have Window present at the moment, but I think it should reside in the C:\WINDOWS\ directory.

When invoking help on GNU/Linux with mysql --help it shows (excerpt):

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 

Maybe you can get the same information on Windows, too.

Btw: with mysql --version you can get your current version.



来源:https://stackoverflow.com/questions/7361437/where-can-i-find-the-file-my-cnf-or-my-ini-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!