--log server option is deprecated and has been removed in 5.6

Bug #1167794 reported by Maciej Dobrzanski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Sandbox
Fix Released
Undecided
Unassigned

Bug Description

MySQL Sandbox generated MySQL configuration files still use 'log' option to enable and configure general log. This option is deprecated since 5.1 in favour of 'general-log' and has been removed completely in MySQL 5.6.

Revision history for this message
Maciej Dobrzanski (mushu) wrote :

Perhaps the easiest solution would be adding version specific [mysqld] sections to my.cnf to maintain backwards compatibility regardless of the version, e.g.:

[mysqld-5.0]
log = ...

[mysqld-5.5]
general-log = ON
general-log-file = /home/psce/sandboxes/rsandbox_mysql-5_6_10/master/data/msandbox.log

and so on...

Changed in mysql-sandbox:
status: New → Confirmed
Revision history for this message
Giuseppe Maxia (giuseppe-maxia) wrote :

Thanks for this bug report/

The log file option is commented, so it would not really be an issue if we use it in MySQL 5.1, 5.5, or 5.6. In these versions, we can run 'set global general_log=on' rather than restarting the server.

Anyway, the fix is easy and it will be applied in the next release (later today, when the tests finish running for all MySQL versions)

Revision history for this message
Giuseppe Maxia (giuseppe-maxia) wrote :

fixed in version 3.0.33

Changed in mysql-sandbox:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.