mysql server restarts automatically code example Example: mysqld restart sudo /etc/init.d/mysql restart