{"id":20745265,"url":"https://github.com/savvydatainsights/opencpu-mysql","last_synced_at":"2026-05-06T14:34:50.882Z","repository":{"id":92519040,"uuid":"181509122","full_name":"savvydatainsights/opencpu-mysql","owner":"savvydatainsights","description":"Custom OpenCPU Docker image prepared for connecting to a MySQL database instance.","archived":false,"fork":false,"pushed_at":"2019-04-16T15:35:41.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T02:41:19.234Z","etag":null,"topics":["docker","mysql","opencpu","r"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/savvydatainsights.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":"2019-04-15T14:54:39.000Z","updated_at":"2019-04-16T15:35:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3cb351d4-208a-4469-b18f-17802cbd6aa7","html_url":"https://github.com/savvydatainsights/opencpu-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savvydatainsights%2Fopencpu-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savvydatainsights%2Fopencpu-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savvydatainsights%2Fopencpu-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savvydatainsights%2Fopencpu-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savvydatainsights","download_url":"https://codeload.github.com/savvydatainsights/opencpu-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243039609,"owners_count":20226131,"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","mysql","opencpu","r"],"created_at":"2024-11-17T07:19:25.284Z","updated_at":"2026-05-06T14:34:45.856Z","avatar_url":"https://github.com/savvydatainsights.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opencpu-mysql\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Docker Build status](https://img.shields.io/docker/cloud/build/savvydatainsights/opencpu-mysql.svg)](https://hub.docker.com/r/savvydatainsights/opencpu-mysql/builds) [![Docker Pulls](https://img.shields.io/docker/pulls/savvydatainsights/opencpu-mysql.svg)](https://hub.docker.com/r/savvydatainsights/opencpu-mysql)\n\nCustom OpenCPU Docker image prepared for connecting to a MySQL database instance.\n\n## Build command\n\n`docker build -t savvydatainsights/opencpu-mysql .`\n\n## Requirements\n\n[Bind mount](https://docs.docker.com/storage/bind-mounts) an [odbc.ini](odbc.ini) like the example:\n\n```ini\n[DSN]\nDescription=MySQL database\nDriver=MySQL ODBC 8.0 Driver\nSERVER=mysql\nPORT=3306\nDATABASE=data_analysis\nUID=root\nPWD=root\n```\n\nThe **Driver** key must have the value **MySQL ODBC 8.0 Driver**, the name defined during the MySQL connection driver installation.\n\nThe other values must be set according to the connection parameters of your MySQL instance.\n\n## Test\n\nRun a MySQL Docker image:\n\n`docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=data_analysis -p 3306:3306 -d mysql:8.0.15`\n\nRun the custom OpenCPU Docker image:\n\n`docker run --name opencpu --link mysql:mysql -v $(pwd)/odbc.ini:/etc/odbc.ini -p 8004:8004 -d savvydatainsights/opencpu-mysql`\n\nEnter into the OpenCPU container:\n\n`docker exec -it opencpu bash`\n\nExecute the command (if your odbc.ini section is other than DSN, replace it accordingly):\n\n`isql -v DSN`\n\nThe output must be something like:\n\n```\n+---------------------------------------+\n| Connected!                            |\n|                                       |\n| sql-statement                         |\n| help [tablename]                      |\n| quit                                  |\n|                                       |\n+---------------------------------------+\nSQL\u003e\n```\n\n## Compose\n\nAn alternative to run each Docker image separatedly is executing:\n\n`docker-compose up -d`\n\nIf the Docker image doesn't exist locally, it will be built automatically. If you prefer to download it from [Docker Hub](https://hub.docker.com/r/savvydatainsights/opencpu-mysql), run before:\n\n`docker pull savvydatainsights/opencpu-mysql`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavvydatainsights%2Fopencpu-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavvydatainsights%2Fopencpu-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavvydatainsights%2Fopencpu-mysql/lists"}