shl0m0
November 14th, 2008, 09:46 AM
In order to install mysql-server I do this:
sudo apt-get install -y mysql-server
But, the installation process pops up a blue dialog asking for a root password.
I need to completely automate the installation of mysql-server.
This post on the Forum Archives has a solution, but it didn't work:
http://ubuntuforums.org/archive/index.php/t-677482.html
It was a good start, though. Here is what I needed to do in order to prevent the prompt from happening:
echo "mysql-server mysql-server/root_password select (password omitted)" | debconf-set-selections
echo "mysql-server mysql-server/root_password_again select (password omitted)" | debconf-set-selections
I put those lines in my setup script and then the mysql-server installation doesn't prompt for a root password.
sudo apt-get install -y mysql-server
But, the installation process pops up a blue dialog asking for a root password.
I need to completely automate the installation of mysql-server.
This post on the Forum Archives has a solution, but it didn't work:
http://ubuntuforums.org/archive/index.php/t-677482.html
It was a good start, though. Here is what I needed to do in order to prevent the prompt from happening:
echo "mysql-server mysql-server/root_password select (password omitted)" | debconf-set-selections
echo "mysql-server mysql-server/root_password_again select (password omitted)" | debconf-set-selections
I put those lines in my setup script and then the mysql-server installation doesn't prompt for a root password.