For mariadb there is an extra systemd file ... I have no idea whether mysql uses a similar script in /lib/systemd/system/
You MUST never edit a file under that directory. you MUST
- cp /lib/systemd/system/mariadb.service /etc/systemd/system/mariadb.service
- edit /etc/systemd/system/mariadb.service