问题
Would anyone know where I could find the my.cnf file(s) on Vista? I am using XAMPP (C:/xampp) and I tried searching within that directory, but I can't seem to find it.
回答1:
my.cnf or my.ini is probably in C:\xampp\mysql\
If not there, you can try the following, which I found here:
To find these MySQL config files, do this:
Go to Folder Options: in any folder, go to the top horizontal main text menu >> Tools >> Folder Options
Enable 'View Hidden Files and Folders', and 'View Protected System Files', save & exit
Go to C Drive, locate and rename the my.ini file, which will now be visible. Rename it as my.ini.bak
Go to /xampp/msql/bin - locate and rename my.cnf, to my.cnf.bak
If there is no file my.cnf, but there is one called my - then that is the one you want. Rename it to my.cnf.bak
来源:https://stackoverflow.com/questions/8114841/where-is-the-my-cnf-located-on-a-vista