[Unit] Description=MySQL Server 5.7.27 Documentation= After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Service] Type=forking PIDFile=/usr/local/mysql/mysql-5.7.27/mysqld.pid ExecStart=/usr/local/mysql/mysql-5.7.27/support-files/mysql.server start ExecReload=/usr/local/mysql/mysql-5.7.27/support-files/mysql.server restart ExecStop=/usr/local/mysql/mysql-5.7.27/support-files/mysql.server stop [Install] WantedBy=multi-user.target