어떤 프로세스가 MySQL 재시작을 시작했는지 알아낼 수 있습니까?

어떤 프로세스가 MySQL 재시작을 시작했는지 알아낼 수 있습니까?

EC2 인스턴스의 파일을 보면 /var/log/mysql/error.log초기 시작 후 MySQL이 두 번 종료되고 두 번 다시 시작되는 것을 볼 수 있습니다.

2019-12-04T06:57:25.835650Z 0 [Note] mysqld: ready for connections.
Version: '5.7.28-0ubuntu0.18.04.4'  socket: '/tmp/tmp.D8yMDciKk5/mysqld.sock'  port: 0  (Ubuntu)
2019-12-04T06:57:25.848479Z 0 [Note] Giving 0 client threads a chance to die gracefully
2019-12-04T06:57:25.848493Z 0 [Note] Shutting down slave threads
2019-12-04T06:57:25.848499Z 0 [Note] Forcefully disconnecting 0 remaining clients
2019-12-04T06:57:25.848503Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-12-04T06:57:25.848537Z 0 [Note] Binlog end
2019-12-04T06:57:25.848834Z 0 [Note] Shutting down plugin 'auth_socket'
2019-12-04T06:57:25.848841Z 0 [Note] Shutting down plugin 'ngram'
2019-12-04T06:57:25.848843Z 0 [Note] Shutting down plugin 'partition'
...
2019-12-04T06:57:28.453076Z 0 [Note] mysqld: ready for connections.
Version: '5.7.28-0ubuntu0.18.04.4'  socket: '/tmp/tmp.hkkkvHaGDX/mysqld.sock'  port: 3306  (Ubuntu)
2019-12-04T06:57:28.453235Z 0 [Note] Giving 0 client threads a chance to die gracefully
2019-12-04T06:57:28.453247Z 0 [Note] Shutting down slave threads
2019-12-04T06:57:28.453251Z 0 [Note] Forcefully disconnecting 0 remaining clients
2019-12-04T06:57:28.453255Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2019-12-04T06:57:28.453285Z 0 [Note] Binlog end
2019-12-04T06:57:28.453525Z 0 [Note] Shutting down plugin 'auth_socket'
...
2019-12-04T06:57:30.760720Z 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.7.28-0ubuntu0.18.04.4'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)

어떤 프로세스나 사용자가 이러한 재시작을 유발/요청했는지 확인하기 위해 시스템(명령 또는 일부 로그 파일을 통해)을 쿼리할 수 있는 방법이 있습니까?

관련 정보