1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[Unit] Description=MySQL database server After=syslog.target network.target [Service] User=mysql Group=mysql ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid ExecStartPost=/usr/bin/mysqld-post Restart=always PrivateTmp=true [Install] WantedBy=multi-user.target