All Projects → MagePsycho → mysql-user-db-creator-bash-script

MagePsycho / mysql-user-db-creator-bash-script

Licence: other
Script to create a mysql database, user and password with just a command

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to mysql-user-db-creator-bash-script

Pwgen
macOS password generator
Stars: ✭ 130 (+441.67%)
Mutual labels:  password-generator, password
Passmaker
可以自定义规则的密码字典生成器,支持图形界面 A password-generator that base on the rules that you specified
Stars: ✭ 363 (+1412.5%)
Mutual labels:  password-generator, password
MasterPassX
A deterministic stateless password generator.
Stars: ✭ 21 (-12.5%)
Mutual labels:  password-generator, password
genpw
Password Generator
Stars: ✭ 32 (+33.33%)
Mutual labels:  password-generator, password
Ttpassgen
密码生成 flexible and scriptable password dictionary generator which can support brute-force、combination、complex rule mode etc...
Stars: ✭ 68 (+183.33%)
Mutual labels:  password-generator, password
PasswordGenerator
A simple C# helper class for ASP.NET Core to generate a random password with custom strength requirements: min length, uppercase, lowercase, digits & more
Stars: ✭ 27 (+12.5%)
Mutual labels:  password-generator, password
Go Password
A Golang library for generating high-entropy random passwords similar to 1Password or LastPass.
Stars: ✭ 317 (+1220.83%)
Mutual labels:  password-generator, password
PasswordX
Offline password manager for iOS/macOS
Stars: ✭ 26 (+8.33%)
Mutual labels:  password-generator, password
Pgen
Command-line passphrase generator
Stars: ✭ 68 (+183.33%)
Mutual labels:  password-generator, password
Diceware
Generate secure passwords you can actually remember!
Stars: ✭ 66 (+175%)
Mutual labels:  password-generator, password
diceware
Improved diceware passphrases
Stars: ✭ 16 (-33.33%)
Mutual labels:  password-generator, password
Passwd
A beautiful, cross-platform, encrypted password manager 🔐
Stars: ✭ 82 (+241.67%)
Mutual labels:  password-generator, password
lockd
Generate strong passwords and save them in Keychain. Made with SwiftUI
Stars: ✭ 38 (+58.33%)
Mutual labels:  password-generator, password
Vault Secrets Gen
A Vault secrets plugin for generating high entropy passwords and passphrases.
Stars: ✭ 238 (+891.67%)
Mutual labels:  password-generator, password
OormiPass
Free open source cross platform password manager
Stars: ✭ 50 (+108.33%)
Mutual labels:  password-generator, password
Xbruteforcer
X Brute Forcer Tool 🔓 WordPress , Joomla , DruPal , OpenCart , Magento
Stars: ✭ 261 (+987.5%)
Mutual labels:  password-generator, password
FlowerPassword
🌸花密,不一样的密码管理器
Stars: ✭ 37 (+54.17%)
Mutual labels:  password-generator, password
LAPSforMac
Local Administrator Password Solution for Mac
Stars: ✭ 29 (+20.83%)
Mutual labels:  password-generator, password
Strongbox
A KeePass/Password Safe Client for iOS and OS X
Stars: ✭ 586 (+2341.67%)
Mutual labels:  password-generator, password
Go Diceware
Golang library for generating passphrases via the diceware algorithm.
Stars: ✭ 69 (+187.5%)
Mutual labels:  password-generator, password

MySQL Database, User/Password Creator

This Script helps you to create a new MySQL database with specific user & password with just a single command.

INSTALL

To install, simply download the script file and give it the executable permission.

curl -0 https://raw.githubusercontent.com/MagePsycho/mysql-user-db-creator-bash-script/master/src/mysql-db-user-creator.sh -o mysql-db-user-creator.sh
chmod +x mysql-db-user-creator.sh

To make it system wide command

sudo mv mysql-db-user-creator.sh /usr/local/bin/mysql-db-user-creator

USAGE

To display help

sudo ./mysql-db-user-creator.sh --help

In General, basic usage

./mysql-db-user-creator.sh [--host="<host-name>"] --database="<db-name>" [--user="<db-user>"] [--pass="<user-password>"]

Notes:

  • The only required parameter is database name.
  • Default parameter values:
Parameter Default Value
host localhost
user same as database name
password randomly generated

And MySQL credentials for new db/user creation will be taken from the MySQL config file ~/.my.cnf.
If you don't have one, you can simply create a .my.cnf file in home directory, with

[client]
host=localhost
user=[your-db-user]
password=[your-db-pass]

If ~/.my.cnf doesn't exist, you will be prompted for the root password. For an automated enviroment it's recommended to make use of MySQL config file.

To Create Db along with specified User & Pass (By passing all parameters explicitly)

./mysql-db-user-creator.sh --host=192.168.1.55 --database=new-db-name --user=new-user --pass=some-strong-pass

To Create Db with User & Pass (By passing only required parameter)

./mysql-create-db-user.sh --database=bash_db2

In this case default values will be used for missing parameters (see above)

Output Sample

MySQL DB, User/Password Creator Result Screentshot - MySQL DB, User/Password Creator Result

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].