MySQL 5.7 (5.6+ actually) changed how mysql_secure_installation
works. This made it hard to find a working, silent, scripted install for Ubuntu 16.04 LTS. How would you install MySQL securely in a scripted noninteractive way?
MySQL – Non-Interactive (Silent) Install of MySQL 5.7 on Ubuntu 16.04 LTS
MySQLubuntu-16.04unattended
Best Answer
The complete script below can be dropped into a file that we will call "install.sh" and executed by doing the following:
Regarding the script below:
Script content: