需要把启动脚本放到/etc/init.d/里面,还要加权限chmod +x mysqld