×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Massimo Zappino
Added: Oct 9, 2017 12:52 PM
Modified: Oct 10, 2017 12:09 PM
Views: 6
Tags: apt mysql
  1. #!/usr/bin/env bash
  2.  
  3. debconf-set-selections <<< 'mysql-server mysql-server/root_password password MySuperPassword'
  4. debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password MySuperPassword'
  5. apt-get update
  6. apt-get install -y mysql-server