# Mysql Service restarting frequently

**URL:** <https://forums.percona.com/t/mysql-service-restarting-frequently/10036>\
**Category:** Percona Server for MySQL 8.0\
**Tags:** community\
**Created:** [April 9, 2021, 5:28pm UTC](https://forums.percona.com/t/mysql-service-restarting-frequently/10036 "2021-04-09T17:28:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gajendra](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/gajendra/32/44_2.png) [@Gajendra](https://forums.percona.com/u/Gajendra)\
**Post date:** [April 9, 2021, 5:28pm UTC](https://forums.percona.com/t/mysql-service-restarting-frequently/10036/1 "2021-04-09T17:28:53Z")

</div>

Hi Team,[mysql restart.txt](https://forums.percona.com/uploads/short-url/aegsA1eGWuvX9xzN6R8MrguB5O8.txt) (3.6 KB) [show\_engine.txt](https://forums.percona.com/uploads/short-url/hLEif4mNOhlPc3kjHhe3ldx5W8Q.txt) (12.3 KB) [conf-mysql.txt](https://forums.percona.com/uploads/short-url/dIRc7crc1EC6KI0dsJjyoOxLImw.txt) (930 Bytes)

Mysql production db restarting frequently thrice in week .

i checked but didn’t get much info. why it is restarting every time

OS : Ubuntu 18.04.5 LTS  
mysql:8.0.23

Please find attachment

---

<div class="post-metadata">

**Author:** ![Wayne\_Leutwyler](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/wayne_leutwyler/32/20829_2.png) [@Wayne\_Leutwyler](https://forums.percona.com/u/Wayne_Leutwyler)\
**Post date:** [April 16, 2021, 1:41am UTC](https://forums.percona.com/t/mysql-service-restarting-frequently/10036/2 "2021-04-16T01:41:55Z")

</div>

Just a tought, have you tried disabling apparmor? The syslog points to that.

Apr 9 16:55:39 ip-10-50-0-120 kernel: [1449603.389015] audit: type=1400 audit(1617967539.158:82): apparmor=“DENIED”  
operation=“open” profile=“/usr/sbin/mysqld” name=“/proc/15808/task/16324/mem” pid=15808 comm=“mysqld” requested\_mask=“r”  
denied\_mask=“r” fsuid=111 ouid=111

Apr 9 16:55:39 ip-10-50-0-120 systemd[1]: mysql.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

Apr 9 16:55:39 ip-10-50-0-120 systemd[1]: mysql.service: Failed with result ‘exit-code’.

Apr 9 16:55:39 ip-10-50-0-120 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.

Apr 9 16:55:39 ip-10-50-0-120 systemd[1]: mysql.service: Scheduled restart job, restart counter is at 4.

Apr 9 16:55:39 ip-10-50-0-120 systemd[1]: Stopped MySQL Community Server.

Apr 9 16:55:39 ip-10-50-0-120 systemd[1]: Starting MySQL Community Server…

Apr 9 16:55:39 ip-10-50-0-120 kernel: [1449604.068026] audit: type=1400 audit(1617967539.838:83):  
apparmor=“STATUS” operation=“profile\_replace” info=“same as current profile, skipping” profile=“unconfined”  
name=“/usr/sbin/mysqld” pid=2814 comm=“apparmor\_parser”
