Saturday, August 6, 2016

Install mysql without getting password prompt

Install mysql without getting password prompt :

For installing mysql without password prompt, we will run following command:

sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password root" 

sudo debconf-set-selections <<< "mysql-server mysql-server/root_password_again password root

sudo apt-get  install mysql-server

After running these command, it will not ask for password. It will be set "root" password

Thanks

No comments:

Post a Comment