https://github.com/losuler/mysql-secure
  
  
    Automate mysql_secure_installation for MariaDB. 
    https://github.com/losuler/mysql-secure
  
mariadb mysql-secure-installation
        Last synced: 6 months ago 
        JSON representation
    
Automate mysql_secure_installation for MariaDB.
- Host: GitHub
- URL: https://github.com/losuler/mysql-secure
- Owner: losuler
- Created: 2020-08-16T14:33:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T09:57:13.000Z (about 5 years ago)
- Last Synced: 2025-05-09T23:53:53.479Z (6 months ago)
- Topics: mariadb, mysql-secure-installation
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
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'
```