Running below achieved what I wanted.
# package="percona-server-server-5.7" # c1="$package percona-server-server-5.7/root-pass password" # debconf-set-selections <<< "$c1 my_root_password" # c2="$package percona-server-server-5.7/re-root-pass password" # debconf-set-selections <<< "$c2 my_root_password"
Once you know what you are looking for, it is easy to get more information, including this:
# debconf-show percona-server-server-5.7 * percona-server-server-5.7/re-root-pass: (password omitted) * percona-server-server-5.7/root-pass: (password omitted) percona-server-server-5.7/root-pass-mismatch: percona-server-server-5.7/remove-data-dir: false * percona-server-server-5.7/data-dir:
And for reference, here are the links that ended-up pointing me in the right direction and/or that I found afterward:
- How to install Percona MySQL 5.6 on Ubuntu 14.04 LTS from a script (i.e. without an interactive prompt for the mysql root password)
- MySQL: unattended Percona Server 5.7 installation
- Installing Percona/MySQL unattended on Ubuntu
And one last thing: maybe PS-3390: document the options available for non-interactive installation in Debian should get more attention (opened in 2016 in Launchpad).
Update: adding MySQL in the text to be caught by PlanetMySQL.
Update: adding MySQL in the text to be caught by PlanetMySQL.
No comments:
Post a Comment