- Print Date:
- Sep 26, 2018 2:35:41 AM
Blog: Using MySQL Administrator with WampServer
For those readers who do not develop PHP on Windows platform WampServer [http://www.wampserver.com/en/] is probably the most popular Apache + MySQL + PHP package for Windows. MySQL Administrator on the other hand, is a part of MySQL GUI Tools [http://dev.mysql.com/downloads/gui-tools/5.0.html] package.
The problem with this pair, is that they don't want to work together. At least not right out of box. MySQL Administrator fails to find mysql service process as installed by WampServer. This leads to infamous 'Could not find settings' error message.
You still will be able to use MySQL Administrator, but some of its features will be unavailable - among them quite important 'Startup variables' that lets you configure your server.
The reason is simple. WampServer keeps MySQL's config file in a directory, that is not checked by MySQL Administrator's searching algorithm.
Luckily, the solution is also simple.
Open registry editor
Windows XP: Go to Start > Run... type in regedit and press Enter
Vista: Go to Start, type regedit into search box and press Enter
A word of warning: be careful when using registry editor, as you might break your system if you change wrong variables.
Using tree on the left go to:
In the window on the right find ImagePath variable, double click it's name.
In the dialog that opens you should see something like this:
(MySQL's version may vary)
Change it like this:
"c:\wamp\bin\mysql\mysql5.1.33\bin\mysqld.exe" --defaults-file="c:\wamp\bin\mysql\mysql5.1.33\my.ini" wampmysqld
(be careful not to miss any double quotes!
Close registry editor, then restart you MySQL server from WampServer's tray menu.
MySQL Administrator should work fine now.
That would be it ;)
MySQL Forums post, where I've found this solution [http://forums.mysql.com/read.php?34,128259,128297#msg-128297]