Last Updated: May 30, 2016
·
1.246K
· sivaschenko

MySQL 5.7 silent install on Ubuntu 16

echo "mysql-server mysql-server/root_password password $MYSQL_ROOT_PASSWORD" | debconf-set-selections
echo "mysql-server mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD" | debconf-set-selections
apt -y install mysql-server
usermod -d /var/lib/mysql/ mysql