Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sometimes it may become necessary, to view logs from MySQL, this can include error logs, slow queries and even general queries altogether. They can be used for troubleshooting a system or enhancing performance.

...

#logging
log-error = "c:/mysql_error.log"
lo log = "c:/general.log"

 

 

Info
titleFile Location

Note that you can place these files wherever you want, as long as the folder exists before hand, otherwise mysql will fail to start.

Info
titleMySQL Version

These changes are for mysql 5.0, if your version is 5.1 log = "c:/general.log" must be changed to general-log-file = "c:/general.log"

...

Info
titleMySQL Version

MySQL 5.6 is the current GA version. Use the following under the mysqld configuration.

log-output = FILE
general-log = 

...

1
general_log_file=C:/wamp/logs/general-query.log