Possible Duplicate:
Scripted install of MySQL on Ubuntu

I wrote script for LAMP auto installation, but it hangs when installs MySQL, because mysql-server asks for new mysql root password. How can I skip this step? P.S. I use command apt-get install -y mysql-server

marked as duplicate by womble, Iain, crb, pauska, jscott Jul 12 '11 at 11:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You can "preseed" the value of any debconf variable (see the manpage for debconf-set-selections; the keys you want are mysql-server/root_password and mysql-server/root_password_again) or, because the question is non-critical, you can skip it by either setting your debconf priority higher or just setting your DEBIAN_FRONTEND=noninteractive.

Not the answer you're looking for? Browse other questions tagged or ask your own question.