Skip to content

dolmen-go/mylogin

Repository files navigation

mylogin - Go utilities for reading MySQL credentials from ~/.mylogin.cnf

GoDoc Travis-CI Go Report Card

About mylogin.cnf:

Go package

github.com/dolmen-go/mylogin Library for reading and writing ~/.mylogin.cnf.

Utilities

mylogin: dump ~/.mylogin.cnf content in clear

go get -u github.com/dolmen-go/cmd/mylogin
mylogin -h

mylogin-dsn: dump a mylogin.cnf section as a go-sql-driver/mysql connection string prefix

go get -u github.com/dolmen-go/cmd/mylogin-dsn
mylogin-dsn -h

See also

Package github.com/dolmen-go/mylogin-driver/register wraps database/sql driver github.com/go-sql-driver/mysql with an alternate connection string syntax that allows to refers to a ~/.mylogin.cnf section.

License

Copyright 2016-2018 Olivier Mengué

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Utilities for reading and writing MySQL' ~/.mylogin.cnf (encrypted MySQL client credentials storage)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published