Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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.

    

1 Answer 1

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.

share|improve this answer

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