bash-create-db-users script is a bash script, which can be used to automate local and cloud to create users in Linux/Unix machines.
RELEASE 0.1.0 (05 Nov 2017)
- bash-create-db-user - Create all db users access details separately with multiple different role
- supported databases
- MySQL
- You can enable the delete user options also, Once the user is created you can delete those user immediately.
- User access detail files are stored in specified directory.
MIT (see https://opensource.org/licenses/MIT)
config.conf: Script will use the configuration from this file (optional)
bash-create-db-user.sh: the main script
You may create and use custom scripts (see below - Configuration)
cd /path/to/scripts
git clone https://github.com/anilskalyane/bash-create-db-user.git
cd /path/to/scripts/bash-cloud-backup
git fetch
git merge origin
If git is not available, download the source:
https://github.com/anilskalyane/bash-create-db-user/archive/master.zip
bash-create-db-user will create all directories you define in configuration files (assuming it has the required permissions)
DO NOT expose root password to create users. Create a 'grant only' user for create and grant purposes.