jbellCNS
Programmer
- Jun 28, 2011
- 9
I am moving from sql server to MySql 5.6 on Windows Server 2008, and want to log everything for a little bit, especially any slow queries with non-indexed joins.
I started with MySql Administrator, but when I check the "Query Logfile" or anything below "Binary Logfile" in the "Log files" tab of "Startup Variables", the server refuses to start, only giving me the message "Server could not be started".
I dug into this farther, and did find this message in the Windows Logs section of the server management: "C:\mysql\bin\mysqld: unknown option '--log-slow-queries'
For more information, see Help and Support Center at ".
I have been working with this for too long without coming to a satisfactory solution. I've tried moving to table-based logging, which allowed the server to start, but logged nothing, as well as manually editing the live my.ini file.
These are the lines in my.ini that I believe should be fixing the problem, but are not. Any assistance would be appreciated.
slow-query-log
log-output = FILE
long_query_time = 1
slow_query_log = 1
general-log=1
expire_logs_days = 3
log-slow-queries=1
I started with MySql Administrator, but when I check the "Query Logfile" or anything below "Binary Logfile" in the "Log files" tab of "Startup Variables", the server refuses to start, only giving me the message "Server could not be started".
I dug into this farther, and did find this message in the Windows Logs section of the server management: "C:\mysql\bin\mysqld: unknown option '--log-slow-queries'
For more information, see Help and Support Center at ".
I have been working with this for too long without coming to a satisfactory solution. I've tried moving to table-based logging, which allowed the server to start, but logged nothing, as well as manually editing the live my.ini file.
These are the lines in my.ini that I believe should be fixing the problem, but are not. Any assistance would be appreciated.
slow-query-log
log-output = FILE
long_query_time = 1
slow_query_log = 1
general-log=1
expire_logs_days = 3
log-slow-queries=1