How do I specify the MySQL root password non-interactively when installing via Aptitude?
772
aptitude install mysql-server while throw up a prompt asking for me to set the root password. I'd like to avoid this by specifying the password in the initial command. How do I do this?
Have a look at the
debconf-set-selections
manpage - it should do exactly what you're after.You should be able to go onto a box with MySQL installed already, and do:-
Then copy it to your target box, and run:-