Skip to content

Instantly share code, notes, and snippets.

View dx-zone's full-sized avatar

Daniel Cruz dx-zone

View GitHub Profile
@Mins
Mins / mysql_secure.sh
Last active August 29, 2026 11:25
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