1、设置开机自启动chkconfig mysqld on2、/etc/init.d/mysqld start/etc/init.d/mysqld stop3、centos6以前services mysqld startservices mysqld stop4、centos7需要用systemctlsystemctl start mysqldsystemctl stop mysqld
service mysqld start