Skip to content

Credential helper for mysql-shell to read the password from ~/.my.cnf

Notifications You must be signed in to change notification settings

dveeden/mysql-secret-store-mycnf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Description

This allows MySQL Shell (mysqlsh) to read the username and password from ~/.my.cnf, similar to what mysql does by default.

Usage

mysqlsh --credential-store-helper=mycnf --sql root@localhost

Or you can put something like this in ~/.mysqlsh/options.json:

{
    "credentialStore.helper": "mycnf",
    "defaultMode": "sql"
}

And then:

mysqlsh root@localhost

Installation

From binary: Download and place in the same directory as mysqlsh

From source:

go get github.com/go-ini/ini
go build
mv mysql-secret-store-mycnf $(dirname $(which mysqlsh))

Related

About

Credential helper for mysql-shell to read the password from ~/.my.cnf

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages