How to install mysql-server on ubuntu without password prompt?
In order to achieve this, we have to store password for mysql-server before the installation begins in such a way that server can have access to it by itself when it needs. Run the following three commands on terminal:
export DEBIAN_FRONTEND="noninteractive" echo "mysql-server-5.6 mysql-server/root_password password your_password" | debconf-set-selections echo "mysql-server-5.6 mysql-server/root_password_again password your_password" | debconf-set-selections
Now we can proceed with regular installation command for mysql-server.