MySQL Query Logging

I'm working on some custom Sage integration, so it would be very valuable for me to be able to turn on query logging for MySQL. I haven't been able to figure out how to accomplish this with the Sage MySQL server, though.

I've tried connecting with the 'sysadmin' account and running the following script from here:

SET global log_output = 'FILE';
SET global general_log_file='/Applications/MAMP/logs/mysql_general.log';
SET global general_log = 1;

But I get the error: Error Code: 1227. Access Denied. You need (at least one of) the SUPER privilege(s) for this operation.

Any ideas?