Skip to content

Instantly share code, notes, and snippets.

@jose8a
Created March 1, 2016 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jose8a/ebb986e668ed8a5b5052 to your computer and use it in GitHub Desktop.
Save jose8a/ebb986e668ed8a5b5052 to your computer and use it in GitHub Desktop.
#!/bin/bash
### Install and configure
sudo apt-get update
sudo apt-get install mysql-server libapache2-mod-auth-mysql
### Post-install, activate the db
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
### Leave root password blank, and decline changing password at end of install
### Connect to mysql
mysql -u root -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment