{"id":22540609,"url":"https://github.com/dolmen-go/mylogin","last_synced_at":"2025-06-12T05:33:02.226Z","repository":{"id":47471294,"uuid":"72773725","full_name":"dolmen-go/mylogin","owner":"dolmen-go","description":"Utilities for reading and writing MySQL' ~/.mylogin.cnf (encrypted MySQL client credentials storage)","archived":false,"fork":false,"pushed_at":"2023-04-03T15:06:15.000Z","size":80,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:42:53.481Z","etag":null,"topics":["credentials","encryption","golang-library","mylogin","mysql","mysql-client","security"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dolmen-go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-03T18:15:14.000Z","updated_at":"2023-09-27T05:36:14.000Z","dependencies_parsed_at":"2024-06-20T22:08:55.890Z","dependency_job_id":null,"html_url":"https://github.com/dolmen-go/mylogin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolmen-go%2Fmylogin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolmen-go%2Fmylogin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolmen-go%2Fmylogin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolmen-go%2Fmylogin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolmen-go","download_url":"https://codeload.github.com/dolmen-go/mylogin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119439,"owners_count":21050754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["credentials","encryption","golang-library","mylogin","mysql","mysql-client","security"],"created_at":"2024-12-07T12:11:42.028Z","updated_at":"2025-04-09T21:45:37.358Z","avatar_url":"https://github.com/dolmen-go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mylogin - Go utilities for reading MySQL credentials from `~/.mylogin.cnf`\n\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/dolmen-go/mylogin)\n[![Travis-CI](https://api.travis-ci.org/dolmen-go/mylogin.svg?branch=master)](https://travis-ci.org/dolmen-go/mylogin)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dolmen-go/mylogin)](https://goreportcard.com/report/github.com/dolmen-go/mylogin)\n\nAbout `mylogin.cnf`:\n\n- \u003chttps://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor.html\u003e\n- \u003chttps://dev.mysql.com/doc/mysql-utilities/1.5/en/mysql-utils-intro-connspec-mylogin.cnf.html\u003e\n\n## Go package\n\n[`github.com/dolmen-go/mylogin`](https://pkg.go.dev/github.com/dolmen-go/mylogin) Library for reading and writing `~/.mylogin.cnf`.\n\n\n## Utilities\n\n### [`mylogin`](https://pkg.go.dev/github.com/dolmen-go/mylogin/cmd/mylogin): dump `~/.mylogin.cnf` content in clear\n\n```sh\ngo get -u github.com/dolmen-go/cmd/mylogin\nmylogin -h\n```\n\n### [`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\n\n```sh\ngo get -u github.com/dolmen-go/cmd/mylogin-dsn\nmylogin-dsn -h\n```\n\n## See also\n\nPackage [`github.com/dolmen-go/mylogin-driver/register`](https://pkg.go.dev/github.com/dolmen-go/mylogin-driver/register)\nwraps [`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)\nwith an alternate connection string syntax that allows to refers to a `~/.mylogin.cnf` section.\n\n## License\n\nCopyright 2016-2018 Olivier Mengué\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolmen-go%2Fmylogin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolmen-go%2Fmylogin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolmen-go%2Fmylogin/lists"}