Created
October 21, 2013 19:25
-
-
Save marcusandre/7089424 to your computer and use it in GitHub Desktop.
Install MySQL Server on a Ubuntu machine without a password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password rootpass' | |
debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password rootpass' | |
apt-get update | |
apt-get -y install mysql-server-5.5 |
Another one:
export DEBIAN_FRONTEND=noninteractive
apt-get -q -y install mysql-server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
change
rootpass
to your desired root password.