Skip to content

Instantly share code, notes, and snippets.

@benwynn
Last active November 1, 2017 17:47
Show Gist options
  • Save benwynn/ae20a3b5402518a9caf5 to your computer and use it in GitHub Desktop.
Save benwynn/ae20a3b5402518a9caf5 to your computer and use it in GitHub Desktop.
Vagrant shell provisioning script to install mysql server
#!/bin/sh
debconf-set-selections <<< 'mysql-server mysql-server/root_password password vagrant'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password vagrant'
apt-get update
apt-get install -y mysql-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment