Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 795 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 795 Bytes

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'