Skip to content

Instantly share code, notes, and snippets.

View pixelicous's full-sized avatar
🧙‍♂️
Making magic happen

Netz pixelicous

🧙‍♂️
Making magic happen
View GitHub Profile
@pixelicous
pixelicous / mysql_secure.sh
Last active July 21, 2020 23:10 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
apt -y install expect
MYSQL_ROOT_PASSWORD=1234
SECURE_MYSQL=$(expect -c "
set timeout 10
spawn mysql_secure_installation
expect \"Press y|Y for Yes, any other key for No:\"