https://github.com/dolmen-go/mylogin
Utilities for reading and writing MySQL' ~/.mylogin.cnf (encrypted MySQL client credentials storage)
https://github.com/dolmen-go/mylogin
credentials encryption golang-library mylogin mysql mysql-client security
Last synced: about 1 year ago
JSON representation
Utilities for reading and writing MySQL' ~/.mylogin.cnf (encrypted MySQL client credentials storage)
- Host: GitHub
- URL: https://github.com/dolmen-go/mylogin
- Owner: dolmen-go
- License: apache-2.0
- Created: 2016-11-03T18:15:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T15:06:15.000Z (about 3 years ago)
- Last Synced: 2025-03-23T23:42:53.481Z (over 1 year ago)
- Topics: credentials, encryption, golang-library, mylogin, mysql, mysql-client, security
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mylogin - Go utilities for reading MySQL credentials from `~/.mylogin.cnf`
[](https://pkg.go.dev/github.com/dolmen-go/mylogin)
[](https://travis-ci.org/dolmen-go/mylogin)
[](https://goreportcard.com/report/github.com/dolmen-go/mylogin)
About `mylogin.cnf`:
-
-
## Go package
[`github.com/dolmen-go/mylogin`](https://pkg.go.dev/github.com/dolmen-go/mylogin) Library for reading and writing `~/.mylogin.cnf`.
## Utilities
### [`mylogin`](https://pkg.go.dev/github.com/dolmen-go/mylogin/cmd/mylogin): dump `~/.mylogin.cnf` content in clear
```sh
go get -u github.com/dolmen-go/cmd/mylogin
mylogin -h
```
### [`mylogin-dsn`](https://pkg.go.dev/github.com/dolmen-go/mylogin/cmd/mylogin-dsn): dump a `mylogin.cnf` section as a [`go-sql-driver/mysql`](https://github.com/go-sql-driver/mysql) connection string prefix
```sh
go get -u github.com/dolmen-go/cmd/mylogin-dsn
mylogin-dsn -h
```
## See also
Package [`github.com/dolmen-go/mylogin-driver/register`](https://pkg.go.dev/github.com/dolmen-go/mylogin-driver/register)
wraps [`database/sql`](https://pkg.go.dev/database/sql) driver [`github.com/go-sql-driver/mysql`](https://pkg.go.dev/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.