title: How can I pass a password from a bash script to aptitude for installing mysql?
body: <p>I am writing a simple bash script to install MySQL on Ubuntu.</p>
  
  <pre><code>#!/bin/bash
  apt-get update
  
  # Install MySQL5 
  aptitude -y install mysql-server mysql-client libmysqlclient15-dev
  </code></pre>
  
  <p>However MySQL prompts for a password and confirmation. How do I pass along a root password. Is there an echo I can use?</p>