Skip to content

Instantly share code, notes, and snippets.

View bagf's full-sized avatar
💣
⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️

Rory bagf

💣
⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️ ⭐️
  • Cape Town, South Africa
View GitHub Profile
@bagf
bagf / ubuntu32_configure.sh
Last active December 30, 2015 05:59
Configures LNMP packages for Vagrant's Ubuntu precise32 box (without sass including memcache)
#!/bin/sh
# MySQL listen on all interfaces
echo "Configuring MySQL..."
mysql -uroot -punsafepassword <<EOFMYSQL
CREATE USER 'remoteuser'@'localhost' IDENTIFIED BY 'passwd123';
GRANT ALL PRIVILEGES ON *.* TO 'remoteuser'@'localhost' WITH GRANT OPTION;
CREATE USER 'remoteuser'@'%' IDENTIFIED BY 'passwd123';
GRANT ALL PRIVILEGES ON *.* TO 'remoteuser'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;