Sunday, 31 July 2011

Ignoring MySQL password prompt when installing in Ubuntu

When installing the MySQL server package in Ubuntu you will be prompted for a password, which is a nice feature for users but for geeks doing auto installs etc it's a real pain in the neck. The easiest solution I could find for this:

export DEBIAN_FRONTEND=noninteractive
dpkg -i mysql-server.deb

To download the .deb files and dependencies without installing:

apt-get -d install mysql-server (files are saved in /var/cache/apt/archives)

No comments:

Post a Comment