{"id":15517860,"url":"https://github.com/hfm/mruby-test-mysqld","last_synced_at":"2026-01-28T02:52:04.518Z","repository":{"id":151130377,"uuid":"67193862","full_name":"hfm/mruby-test-mysqld","owner":"hfm","description":"Setting up a mysqld instance in tmpdir, and destroying it when a mruby program exits. ","archived":false,"fork":false,"pushed_at":"2018-12-13T08:41:19.000Z","size":21,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T20:08:46.771Z","etag":null,"topics":["mruby","mysql","test","test-mysqld"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hfm.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-09-02T05:47:56.000Z","updated_at":"2017-06-02T07:18:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"0561eb81-99f0-4f53-97ef-7abd6d27aade","html_url":"https://github.com/hfm/mruby-test-mysqld","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hfm/mruby-test-mysqld","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fmruby-test-mysqld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fmruby-test-mysqld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fmruby-test-mysqld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fmruby-test-mysqld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hfm","download_url":"https://codeload.github.com/hfm/mruby-test-mysqld/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfm%2Fmruby-test-mysqld/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28835174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T02:10:51.810Z","status":"ssl_error","status_checked_at":"2026-01-28T02:10:50.806Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["mruby","mysql","test","test-mysqld"],"created_at":"2024-10-02T10:14:23.563Z","updated_at":"2026-01-28T02:52:04.501Z","avatar_url":"https://github.com/hfm.png","language":"Ruby","readme":"# mruby-test-mysqld   [![Build Status](https://travis-ci.org/hfm/mruby-test-mysqld.svg?branch=master)](https://travis-ci.org/hfm/mruby-test-mysqld)\n\nSetting up a mysqld instance in tmpdir, and destroying it when a mruby program exits. The aim for this project is a port of [Test::mysqld](http://search.cpan.org/~kazuho/Test-mysqld/) to [mruby](https://github.com/mruby/mruby).\n\n## install by mrbgems\n\n- add conf.gem line to `build_config.rb`\n\n```ruby\nMRuby::Build.new do |conf|\n\n    # ... (snip) ...\n\n    conf.gem :github =\u003e 'hfm/mruby-test-mysqld'\nend\n```\n\n## example\n\n```ruby\nmysqld = TestMysqld.new\n# ... Initialize mysqld ...\n# ... Starting mysqld ...\n# =\u003e #\u003cTestMysqld:0x7fcec1821480 @pid=28004, @mysql_install_db=\"/usr/local/bin/mysql_install_db\", @mycnf={:socket=\u003e\"/tmp/mruby_testmysqld_1472791284/tmp/mysql.sock\", :datadir=\u003e\"/tmp/mruby_testmysqld_1472791284/var\", :pid_file=\u003e\"/tmp/mruby_testmysqld_1472791284/tmp/mysqld.pid\"}, @base_dir=\"/tmp/mruby_testmysqld_1472791284\", @mysqld=\"/usr/local/bin/mysqld\"\u003e\n\ndb = MySQL::Database.new 'localhost', 'root', '', 'test', 3306, mysqld.socket\n# =\u003e #\u003cMySQL::Database:0x7ff03481e1d0 context=#\u003cObject:0x7ff03481e1a0\u003e\u003e\n# ... Execute db query...\n\ndb.close\n# =\u003e nil\n\nmysqld.stop\n# ... Shutting down mysqld ...\n# =\u003e nil\n```\n\n## License\n\nunder the MIT License:\n- see [LICENSE](./LICENSE) file\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfm%2Fmruby-test-mysqld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhfm%2Fmruby-test-mysqld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfm%2Fmruby-test-mysqld/lists"}