Technology Insights

mysql-server debconf Variables

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.

Technology Insights

Install MySQL Automatically On Ubuntu

If you need to complete an unattended installation or scripted install of MySQL On Ubuntu Linux you can do so easily by setting the necessary variable with debconf-set-selections. Typically when you install MySQL on Ubuntu it will pop up a window and ask for you to enter a password even when you have specified -y with apt-get install. Below are the commands necessary to set the password variable which then allow you to automatically install MySQL on Ubuntu.