Mysql 添加到Service
方法一:在/etc/rc.d/rc.local文件末尾添加如下一行
/usr/local/mysql5/bin/mysql start
方法二:在mysql5目录下找到support-files目录将其中的mysql.server复制修改为/etc/init.d/mysqld
cp support-files/mysql.server /etc/init.d/mysqld chkconfig --add mysqld service mysqld start chkconfig --level 35 mysqld on