I did try to install mysql-server on my Vagrant Ubuntu 12.04 LTS virtual machine. When I did so, the setup auto-starts. I can see this in the Vagrant output:While not mandatory, it is highly recommended that you set a password    for the MySQL administrative root user. If this field is left blank, the password will not be changed. New password for the MySQL root userAfter that the output text goes haywire —    3-0 3.7.9-21 ( ... — but is rather lengthy and full of green and red colors, so I believe the rest of the install is completing. But I can confirm the lack of install after:sudo apt-get install --just-print mysql-server-5.5 ...The following NEW packages will be installed:  mysql-server-5.5How can I send the right signals through a shell script to configure the MYSQL server? Or if I cannot, how can I stop the automatic launching of the configuration or kill the setup once launched while still having the package installed? 
Installing mysql-server in vagrant bootstrap shell script (how to skip setup?)
ubuntu;mysql;vagrant
You can set the MySQL root password in your bootstrap file by adding debconf-set-selections commands before running your apt-get install:#!/usr/bin/env bashdebconf-set-selections <<< 'mysql-server mysql-server/root_password password MySuperPassword'debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password MySuperPassword'apt-get updateapt-get install -y mysql-serverI presume this to work on any Debian based system. I use it everyday, box is built completely automatically.