8

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.

cudalanda
  • 83
  • 1
  • 1
  • 3
  • You can find an answer here: http://stackoverflow.com/questions/1712646/i-can-not-find-my-cnfmysql-configuration-file-on-my-computer – JamesHalsall Sep 09 '11 at 12:24
  • You can find the answer in the comment that was left earlier, it's also been raised on both serverfault.com and superuser.com, which is why I didn't automatically migrate it. – Tim Post Sep 09 '11 at 12:56

1 Answers1

13

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.

arnep
  • 5,971
  • 3
  • 35
  • 51