{"id":17722806,"url":"https://github.com/bramp/mysqldump2csv","last_synced_at":"2025-10-04T03:30:46.056Z","repository":{"id":57569302,"uuid":"103801054","full_name":"bramp/mysqldump2csv","owner":"bramp","description":"Convert mysqldump files to CSVs","archived":false,"fork":false,"pushed_at":"2017-10-28T17:17:32.000Z","size":31,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-21T10:12:30.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bramp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-17T03:45:17.000Z","updated_at":"2024-03-08T14:36:58.000Z","dependencies_parsed_at":"2022-08-23T18:11:15.720Z","dependency_job_id":null,"html_url":"https://github.com/bramp/mysqldump2csv","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/bramp%2Fmysqldump2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fmysqldump2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fmysqldump2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bramp%2Fmysqldump2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bramp","download_url":"https://codeload.github.com/bramp/mysqldump2csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235213258,"owners_count":18953729,"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-25T15:39:25.764Z","updated_at":"2025-10-04T03:30:40.763Z","avatar_url":"https://github.com/bramp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysqldump2csv [![Build Status](https://img.shields.io/travis/bramp/mysqldump2csv.svg)](https://travis-ci.org/bramp/mysqldump2csv) [![Coverage](https://img.shields.io/coveralls/bramp/mysqldump2csv.svg)](https://coveralls.io/github/bramp/mysqldump2csv) [![Report card](https://goreportcard.com/badge/bramp.net/mysqldump2csv)](https://goreportcard.com/report/bramp.net/mysqldump2csv) [![GoDoc](https://godoc.org/bramp.net/mysqldump2csv?status.svg)](https://godoc.org/bramp.net/mysqldump2csv)\nby Andrew Brampton ([bramp.net](https://bramp.net))\n\nConvert a MySQL SQL dumps to a CSV file. Originally developed to convert [Wikipedia database backups](https://dumps.wikimedia.org/backup-index.html) into something more parsable. Uses a SQL parser to correctly parse the file, instead of hacky regexes (or likewise) that are unreliable.\n\n# Install\n\n```bash\ngo install bramp.net/mysqldump2csv\n```\n\n# Usage\n\n```man\nmysqldump2csv - Convert MySQL SQL Dumps to CSV\n\nUsage:\n  mysqldump2csv [flags] \u003cdump.sql\u003e\n\nFlags:\n  -delimiter string         field delimiter (default: \",\")\n  -newline string           line terminator (default: \"\\n\")\n\n  -header                   Print the CSV header (default: true)\n  -multi                    A CSV file is created for each table (default: false)\n  -table string             Filter the input to only this table (default: \"\")\n  -verbose                  Verbose output (default: false)\n\n```\n\nExample:\n\n```bash\n$ mysqldump2csv enwiki-20170901-page.sql.gz \u003e enwiki-20170901-page.csv\n```\n\n# Related\n\nAfter writing this I found an almost identical application, [mysqldump-to-csv](https://github.com/jamesmishra/mysqldump-to-csv) written with the same goals.\n\n# Licence (Apache 2)\n\n*This is not an official Google product (experimental or otherwise), it is just\ncode that happens to be owned by Google.*\n\n```\nCopyright 2017 Google Inc. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fmysqldump2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbramp%2Fmysqldump2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbramp%2Fmysqldump2csv/lists"}