Skip to content

Create an empty data base and user with admin permission

Notifications You must be signed in to change notification settings

Angel-Gonzalez/emptydb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

EmptyDB

Description

A simple helper for create an empty database and user with admin privileges, pretended to be used as complement tool in frameworks like Wordpress and Prestashop where we need to create this kind of database

Usage

The primary use is intended to be in command line terminal. If given no server password param will ask for it in interactive shell.

Params

  • -h Show help and params description
  • -u or --db_user for set the new database user name, if not entered a random string will generate as default
  • -p or --db_pass for set the new user password, if not entered a random string will generate as default
  • -U or --root_user for Database server root user, if not entered 'root' is used as default
  • -P or --root_pass for Database root password, if not entered will be asked in interactive shell
  • -d or --driver for Server host, mysql as default, more driver will be added soon
  • -l or --length Database user password length, 8 char as default value generated for user name and password both
  • -D or --db_name for Database name, if not set, a random string will be generated as default value

About

Create an empty data base and user with admin permission

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages