linux下配置mysql开机自启动

echo "service mysqld start" >> /etc/rc.local

或者是echo "systemctl  start mysqld " >> /etc/rc.local

原文地址:https://www.cnblogs.com/Linux-guowen/p/14647984.html