Comment 5 for bug 819535

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This still affects Bionic, but it also still is of super low importance.
As even if we would change the default path it would look for, by default slow queries are not enabled.
They have to be enabled in /etc/mysql/mysql.conf.d/mysqld.cnf first, otherwise we will just get the same error, but with a different path.

Also it is no hardcoded path, it is just falling back to "my_print_defaults mysqld" and derives it from --datadir (unless specified).

So what could be changed, I don#t think we want to change that.
So after all the time nothing happened by prio-super-low lets be honest it is fine as it is.

If anything I would wonder that IF slowlog is enabled then I'd expect the code to find e.g.
  --slow_query_log_file=/var/log/mysql/mysql-slow.log
But it does not.

So if one wants to debug the perl and check why with an enabled slow log it does not auto-use the path it finds in there - that is the bug that could be looked at.