Cloudkul Support

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.

Is this article is helpful?

People like and 1 people dislike.

If result is not found or irrelevant, Please contact us.

Submit your request

Start a Project




    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home