目前有多种方式能够设置MySQL在Ubuntu下的自启动,挑一种最传统的:mysql
# update-rc.d mysql defaultssql
# update-rc.d mysql defaults