Closed kraxor closed 3 years ago
Moving the related entries in /etc/mysql/my.cnf
from the [mysqld]
section to the [mysqld_safe]
section seems to solve the issue:
[mysqld_safe]
pid-file = /var/run/mysqld/mysqld.pid
syslog
syslog-tag = mysql
Perhaps this should be done automatically when mysql_log
is set to syslog
?
After some more digging I found this:
Using these options to control mysqld logging is deprecated as of MySQL 5.7.5. Use the server log_syslog system variable instead. To control the facility, use the server log_syslog_facility system variable. (https://dev.mysql.com/doc/refman/5.7/en/mysqld-safe.html#option_mysqld_safe_syslog)
Details on log_syslog
: https://dev.mysql.com/doc/refman/5.7/en/error-log-syslog.html
... and then they changed it again in 8.0.13: https://dev.mysql.com/doc/refman/8.0/en/error-log-syslog.html
Going to give up for now, because a proper solution would require version-specific changes in my.cnf
and I don't have the free capacity to test with different versions of mysql. The workaround provided in PR #441 should work with all versions, even though it uses a deprecated method.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
You're stale.
Following the main
README.md
I'm trying to get a very basic mysql setup that logs to syslog on a fairly clean Ubuntu 20.04 virtual machine. My vars:...but mysql fails to start: