WampServer搭建的PHP环境, 使用Mysql Administrator 登陆提示“either the server service or the configuration file could not be found.startup variables and service section are therefore disabled”,原因是Mysql Administrator 找不到my.ini配置文件.
解决方法:
打开注册表(regedit),找到KEY_LOCAL_MACHINE\System\CurrentControlSet\Services\wampmysqld\
在键值"ImagePath "内添加"--defaults-file=x:\wamp\bin\mysql\mysql5.5.8\my.ini"变成"x:\wamp\bin\mysql\mysql5.5.8\bin\mysqld.exe --defaults-file=x:\wamp\bin\mysql\mysql5.5.8\my.ini wampmysqld"
(mysql5.5.8为你的mysql版本)
转载于:https://blog.51cto.com/webos/655543