Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/losuler/mysql-secure

Automate mysql_secure_installation for MariaDB.
https://github.com/losuler/mysql-secure

mariadb mysql-secure-installation

Last synced: about 2 months ago
JSON representation

Automate mysql_secure_installation for MariaDB.

Awesome Lists containing this project

README

        






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](https://gist.github.com/coderua), forked from https://gist.github.com/coderua/5592d95970038944d099.

## Dependencies

```
expect
```

## Usage

Setup MariaDB root password:

```bash
./mysql_secure.sh 'your_current_root_password'
```

Change MariaDB root password:

```bash
./mysql_secure.sh 'your_old_root_password' 'your_new_root_password'
```