{"id":15598643,"url":"https://github.com/fluffynuts/mysql-runner","last_synced_at":"2025-09-13T19:32:40.221Z","repository":{"id":35793581,"uuid":"193923164","full_name":"fluffynuts/mysql-runner","owner":"fluffynuts","description":"A brute-force mysql file runner, eg for (mostly) restoring wonky backups","archived":false,"fork":false,"pushed_at":"2024-06-13T10:09:18.000Z","size":2328,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T15:11:38.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluffynuts.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-06-26T14:41:26.000Z","updated_at":"2024-06-13T10:09:14.000Z","dependencies_parsed_at":"2023-11-08T11:33:22.919Z","dependency_job_id":"da05fa45-def6-4598-9e02-650a5d895350","html_url":"https://github.com/fluffynuts/mysql-runner","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/fluffynuts%2Fmysql-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fmysql-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fmysql-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fmysql-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluffynuts","download_url":"https://codeload.github.com/fluffynuts/mysql-runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232905751,"owners_count":18594798,"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":[],"created_at":"2024-10-03T01:40:53.635Z","updated_at":"2025-01-07T16:53:49.499Z","avatar_url":"https://github.com/fluffynuts.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysql-runner\nA brute-force mysql file runner, eg for (mostly) restoring (potentially) wonky backups or\nresuming backups from existing sources without IGNOREs\n\n## usage\nRun with `--help` to get help any time and forget about this doc (:\n\n```\nMySql Runner\nUsage: mysql-runner [options] script.sql ... {script2.sql}\n  where options are of:\n  -d {database}    set database (no default)\n  -h {host}        set database host (defaults to localhost)\n  -p {password}    set password to log in with (defaults empty)\n  --prompt         will prompt for password\n  -P {port}        set port (defaults to 3306}\n  -s               stop on error (defaults to carry on)\n  -q               quiet operations\n  -u {user}        set user to log in with (defaults to root)\n```\n\n## why?\nI needed to be able to restore scripts made by `mysqldump` and had to overcome:\n- `mysql` would crash on long lines\n- I wanted to be able to 'resume' so needed to be able to ignore errors\n- I tried HeidiSQL and it predicted 22 hours to run in scripts that took this tool about 40 minutes\n- I wanted something that would work cross-platform\n- I've written something like this in the past before and lost it\n- I wrote almost exactly this the day I created this repo and did `git reset --hard` and lost it :/\n  - but then I made a new one (:\n\n## situation [X] breaks!\nLet me know about it -- raise an issue. The primary aim was to get a dump file running in without\ninterruption. So I _know_ that there are some naive assumptions, in particular that `/* ... */` is a\n\"multi-line comment which never actually spans multiple lines, but leaves a no-op query behind\", eg:\n```\n/* some mysqldump options stuff goes here */;\n```\nso if you have legitimate multi-line comments or something useful after the comment, this tool won't\n(currently) behave as expected. But it could, if you give me an example (:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Fmysql-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluffynuts%2Fmysql-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Fmysql-runner/lists"}