Skip to content

Instantly share code, notes, and snippets.

View chenkai0567's full-sized avatar

chenkai0567

  • Bay Area, California
View GitHub Profile
@chenkai0567
chenkai0567 / setup-mysql.sh
Created November 20, 2016 19:31 — forked from sheikhwaqas/setup-mysql.sh
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
@chenkai0567
chenkai0567 / mysql_secure.sh
Created November 20, 2016 19:31 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10