Skip to content

Instantly share code, notes, and snippets.

@marceloneil
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marceloneil/f040787c3c6981c8d447 to your computer and use it in GitHub Desktop.
Save marceloneil/f040787c3c6981c8d447 to your computer and use it in GitHub Desktop.
Automatic MySQL configurator for Ubuntu
#!/bin/bash
sudo debconf-set-selections < preseed.cfg
wget "http://dev.mysql.com/get/mysql-apt-config_w.x.y-zubuntu<version>_all.deb"
sudo DEBIAN_FRONTEND=noninteractive dpkg -i mysql-apt-config_w.x.y-zubuntu<version>_all.deb
mysql-apt-config mysql-apt-config/select-server select mysql-5.6
mysql-apt-config mysql-apt-config/select-workbench select workbench-6.3
mysql-apt-config mysql-apt-config/select-utilities select none
mysql-apt-config mysql-apt-config/select-connector-python select none
mysql-apt-config mysql-apt-config/select-connector-odbc select connector-odbc-x.x
mysql-apt-config mysql-apt-config/select-product select Apply
@marceloneil
Copy link
Author

Configure w.x.y-z and to your preferred MySQL config version (not the MySQL server version) and Ubuntu flavour respectively.

@marceloneil
Copy link
Author

Also, change the settings in preseed.cfg to your preference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment