0

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

artem
  • 596
  • 2
  • 10
  • 28

1 Answers1

0

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.

womble
  • 96,255
  • 29
  • 175
  • 230