/etc/systemd/system/mysqld.servicemysql
[Unit]sql
Description=MySQL Serverapp
Documentation=man:mysqld(8)ip
After=network.targetget
After=syslog.targetit
[Install]io
WantedBy=multi-user.targetfile
[Service]network
User=rootservice
Group=root
ExecStart=/app/mysql/bin/mysqld --defaults-file=/etc/my.cnf
LimitNOFILE=5000
而後就能夠:systemctl start mysqld