WAMP忽略my.ini [英] WAMP ignore my.ini
问题描述
C:\ wamp \ bin \ mysql \ mysql5.6.17有my.ini.我添加了文本log=c:/wamp/logs/mysql_query.log
,但是它不起作用.
C:\wamp\bin\mysql\mysql5.6.17 has my.ini. I add text log=c:/wamp/logs/mysql_query.log
but it's not working.
任何更改均无效.我试图重命名文件myblablabla.ini,但是WAMP服务器成功启动.我认为,他使用了不同的配置文件.如何找到它?
Any changes do not work. I tried to rename the file myblablabla.ini, but WAMP server successfully started. I think, he uses a different configuration file. How to find it?
感谢您的帮助.
推荐答案
如果您使用的是64位版本的WAMPServer 2.4或2.5,则该发行版中会出现一些错误.
If you are using the 64bit version of WAMPServer 2.4 or 2.5 there was a little mistake in the release.
MySQL在其ini文件中查找与其服务名称匹配的部分,以获取其参数. 64位MySQL服务称为wampmysqld64
,因此my.ini
部分标头也应为wampmysqld64
MySQL looks in its ini file for a section that matches its service name, to get its parameters from. The 64bit MySQL Service is called wampmysqld64
and therefore the my.ini
section header should also be wampmysqld64
使用wampmanager菜单编辑my.ini
这样
Use the wampmanager menus to edit my.ini
like this
wampmanager -> MYSQL -> my.ini
因此,请编辑您的my.ini
并找到此行
So edit your my.ini
and find this line
[wampmysqld]
然后将其更改为
[wampmysqld64]
MySQL现在将提取您在该部分中设置的参数.
MySQL will now pickup the parameters you set within that section.
这篇关于WAMP忽略my.ini的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!