方法1
//复制mysql.server到/etc/rc.d/init.d/下 #cp /mysql-5.1.43/support-files/mysql.server /etc/rc.d/init.d/mysqld
//为mysqld添加运行权限 #chmod x /etc/rc.d/init.d/mysqld
//将mysqld添加到启动 #chkconfig –add mysqld #chkconfig –level 35 mysqld on
#service mysqld start
方法2
//将运行命令写入rc.local vi /etc/rc.d/rc.local //用vi编辑rc.local
将下面的命令写入到rc.local中 /usr/local/mysql/bin/mysqld_safe –user=mysql &