Skip to content

ttcong/mysql-bulk-create-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql-bulk-create-users

Small tool for tired DBAs.

Create users (with random strong password), grant all privileges on their databases (create database if need). Also support very old syntax of MySQL <=5.5, Mariadb <=10.1

Input:

  • MySQL Credential files: .my.cnf (as sample)
  • User List: userList. Each rows is a username (as sample)
  • Privileges List: privList.csv .CSV file, each rows is a username,database pair. (as sample)

Output:

  • Print username & password (as json)
  • List of granted databases for users.

About

Small tool for tired DBAs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages