I can install MYSQL on Ubuntu without prompts with the code below:
dbpass=\"mydbpassword\" export DEBIAN_FRONTEND=noninteractive echo mysql-server-5.1 mysql-
I actually found that the answer here install mysql on ubuntu without password prompt that suggested
export DEBIAN_FRONTEND=noninteractive apt-get -q -y install mysql-server
Worked and left me with a root user with no password, which is what I wanted.