{"id":16306628,"url":"https://github.com/soh335/test-mysqld-docker","last_synced_at":"2026-04-20T09:33:39.361Z","repository":{"id":66537996,"uuid":"75269461","full_name":"soh335/test-mysqld-docker","owner":"soh335","description":"testing with docker mysqld for golang","archived":false,"fork":false,"pushed_at":"2017-05-07T12:26:27.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T13:14:54.182Z","etag":null,"topics":["docker","golang","mysql","testing"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soh335.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-12-01T08:00:46.000Z","updated_at":"2021-02-05T18:36:40.000Z","dependencies_parsed_at":"2023-03-16T15:00:48.846Z","dependency_job_id":null,"html_url":"https://github.com/soh335/test-mysqld-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soh335/test-mysqld-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soh335%2Ftest-mysqld-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soh335%2Ftest-mysqld-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soh335%2Ftest-mysqld-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soh335%2Ftest-mysqld-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soh335","download_url":"https://codeload.github.com/soh335/test-mysqld-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soh335%2Ftest-mysqld-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263046214,"owners_count":23405152,"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":["docker","golang","mysql","testing"],"created_at":"2024-10-10T21:11:13.288Z","updated_at":"2026-04-20T09:33:34.321Z","avatar_url":"https://github.com/soh335.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://travis-ci.org/soh335/test-mysqld-docker.svg?branch=master)\n\n# test-mysqld-docker\n\nTesting with docker mysqld for golang. Support inside and outside of docker container.\n\n## DOWNLOAD\n\n```\n$ go get github.com/soh335/test-mysqld-docker\n```\n\n## USAGE\n\n```go\nmysqld, err := mysqltest.NewMysqld(nil)\nif err != nil {\n    log.Fatal(err.Error())\n}\ndb, err := sql.Open(\"mysql\", mysqld.DSN())\nif err != nil {\n    log.Fatal(err.Error())\n}\nif err := db.Ping(); err != nil {\n    log.Fatal(\"ping failed\")\n}\n```\n### INSIDE DOCKER CONTAINER\n\nRequire docker command for finding parent conatiner network and ip address of mysql container is created. If you can allow to mount parent docker socket, add -v option like this ( ```-v /var/run/docker.sock:/var/run/docker.sock```).\n\n## SEE ALSO\n\n* https://github.com/lestrrat/go-test-mysqld\n* https://github.com/punytan/p5-Test-Docker-MySQL\n\n## LICENSE\n\n* MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoh335%2Ftest-mysqld-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoh335%2Ftest-mysqld-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoh335%2Ftest-mysqld-docker/lists"}