{"id":18639169,"url":"https://github.com/rjeczalik/dsn2mycnf","last_synced_at":"2026-05-05T22:39:49.765Z","repository":{"id":64308324,"uuid":"458922478","full_name":"rjeczalik/dsn2mycnf","owner":"rjeczalik","description":"Converts MySQL DSN connection string to a my.cnf configuration file","archived":false,"fork":false,"pushed_at":"2022-02-14T00:44:28.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-27T09:29:56.871Z","etag":null,"topics":["devops","docker","golang","mysql"],"latest_commit_sha":null,"homepage":"https://rafal.dev/dsn2mycnf","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/rjeczalik.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}},"created_at":"2022-02-13T20:25:06.000Z","updated_at":"2022-02-17T13:11:59.000Z","dependencies_parsed_at":"2023-01-15T11:15:21.626Z","dependency_job_id":null,"html_url":"https://github.com/rjeczalik/dsn2mycnf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjeczalik%2Fdsn2mycnf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjeczalik%2Fdsn2mycnf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjeczalik%2Fdsn2mycnf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjeczalik%2Fdsn2mycnf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjeczalik","download_url":"https://codeload.github.com/rjeczalik/dsn2mycnf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239436506,"owners_count":19638327,"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":["devops","docker","golang","mysql"],"created_at":"2024-11-07T05:45:56.117Z","updated_at":"2025-11-04T16:30:34.580Z","avatar_url":"https://github.com/rjeczalik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dsn2mycnf\nConverts MySQL DSN connection string to a my.cnf configuration file.\n\n### Getting started\n\nInstallation:\n\n```\ngo install rafal.dev/dsn2mycnf\n```\n\nUsage:\n\n```\n$ dsn2mycnf 'user:password@tcp(host:3306)/database'\n[client]\n  host = \"host\"\n  port = 3306\n  user = \"user\"\n  password = \"password\"\n  database = \"database\"\n  ssl-mode = \"PREFERRED\"\n```\n\n### Example\n\nGenerate client configuration file `database.cnf`:\n\n```\n$ dsn2mycnf -out database.cnf 'user:password@tcp(host:3306)/database'\n```\n\nStart mysql client container:\n\n```\n$ docker run -ti --rm --mount type=bind,source=$PWD/database.cnf,target=/etc/mysql/conf.d/database.cnf mysql mysql -A\n```\n```\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 970989\nServer version: 5.7.33-log Source distribution\n\nCopyright (c) 2000, 2022, Oracle and/or its affiliates.\n\nOracle is a registered trademark of Oracle Corporation and/or its\naffiliates. Other names may be trademarks of their respective\nowners.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjeczalik%2Fdsn2mycnf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjeczalik%2Fdsn2mycnf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjeczalik%2Fdsn2mycnf/lists"}