The purpose of this article is to list the variables that are available to set when installing mysql-server on Ubuntu Linux. You can use the debconf-get-selections command to list debconf variables for any installed package on Ubuntu but the debconf variables are most useful before a package is installed so I constantly find myself having to login to another Ubuntu server where the package is already installed to get these variables. Now I can just look on QD.
mysql-server debconf Variables:
- mysql-server-5.5 mysql-server-5.5/start_on_boot boolean true
- mysql-server-5.5 mysql-server-5.5/postrm_remove_databases boolean false
- mysql-server mysql-server/root_password password
- mysql-server-5.5 mysql-server/root_password password
- mysql-server mysql-server/root_password_again password
- mysql-server-5.5 mysql-server/root_password_again password
- mysql-server-5.5 mysql-server-5.5/nis_warning note
- mysql-server-5.5 mysql-server-5.5/really_downgrade boolean false
- mysql-server-5.5 mysql-server/error_setting_password error
- mysql-server-5.5 mysql-server/password_mismatch error
- mysql-server-5.5 mysql-server/no_upgrade_when_using_ndb error
Notice the two debconf variables that are not mysql-server-5.5 and only mysql-server. Those are debconf variables that I set before installing mysql-server on this Ubuntu Linux server. You only need to set the password and password_again debconf variables to automatically install MySQL on Ubuntu as explained in this article.