First, you need debconf installed by sudo apt-get -y install debconf.
Then, you may install mysql-server silenly by:
echo mysql-server-5.1 mysql-server/root_password password PASSWORD-STRING | sudo debconf-set-selections
echo mysql-server-5.1 mysql-server/root_password_again password PASSWORD-STRING | sudo debconf-set-selections
sudo apt-get -y install mysql-server
All pretty simple!
Then, you may install mysql-server silenly by:
echo mysql-server-5.1 mysql-server/root_password password PASSWORD-STRING | sudo debconf-set-selections
echo mysql-server-5.1 mysql-server/root_password_again password PASSWORD-STRING | sudo debconf-set-selections
sudo apt-get -y install mysql-server
All pretty simple!
Comments