Skip to content

Instantly share code, notes, and snippets.

View naillizard's full-sized avatar
🏠
Working from home

naillizard naillizard

🏠
Working from home
View GitHub Profile
@naillizard
naillizard / mySQLSecure.sh
Last active January 15, 2018 20:04
Automate mysql secure installation for Red Hat Enterprise Linux (RHEL) compatible distributions
#!/bin/bash
#
# Automate mysql secure installation for Red Hat Enterprise Linux (RHEL) compatible distributions
#
# - Change a password for root accounts (CLI option)
# - Remove root account access from hosts other than localhost. (default behavior)
# - Remove anonymous-user accounts. (default behavior)
# - Remove the test database and privileges that permit anyone to
# access databases with names that start with test_. (default behavior)
#