我遇到了与 Mysql 5.7.19(在 Ubuntu 17 上)相关的问题。Mysql 会在 2 或 3 天后自动重启。每当它重新启动时,系统日志中都会出现以下行。
Aug 10 11:52:19 db1 kernel: [787345.027934] audit: type=1400 audit(1502346139.942:31): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/proc/3381/task/19686/mem" pid=3381 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=113 ouid=113
Aug 10 11:52:19 db1 systemd[1]: mysql.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 10 11:52:19 db1 systemd[1]: mysql.service: Unit entered failed state.
Aug 10 11:52:19 db1 systemd[1]: mysql.service: Failed with result 'exit-code'.
Aug 10 11:52:20 db1 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Aug 10 11:52:20 db1 systemd[1]: Stopped MySQL Community Server.
Aug 10 11:52:20 db1 systemd[1]: Starting MySQL Community Server...
先感谢您。