losuler / mysql-secure

Automate mysql_secure_installation for MariaDB.

Repository from Github https://github.comlosuler/mysql-secureRepository from Github https://github.comlosuler/mysql-secure

MariaDB Secure

Automate mysql_secure_installation for MariaDB.

About

A bash script to automate the running of mysql_secure_installation for MariaDB. This has been tested on the following systems:

openSUSE Leap 15.2 (MariaDB 10.4.13)

Based on the script by Vladimir Chumak, forked from https://gist.github.com/coderua/5592d95970038944d099.

Dependencies

expect

Usage

Setup MariaDB root password:

./mysql_secure.sh 'your_current_root_password'

Change MariaDB root password:

./mysql_secure.sh 'your_old_root_password' 'your_new_root_password'

About

Automate mysql_secure_installation for MariaDB.


Languages

Language:Shell 100.0%