{"id":13725618,"url":"https://github.com/lanyrd/mysql-postgresql-converter","last_synced_at":"2025-05-15T22:11:50.335Z","repository":{"id":5475493,"uuid":"6672014","full_name":"lanyrd/mysql-postgresql-converter","owner":"lanyrd","description":"Lanyrd's MySQL to PostgreSQL conversion script","archived":false,"fork":false,"pushed_at":"2022-09-16T22:15:00.000Z","size":52,"stargazers_count":1293,"open_issues_count":29,"forks_count":463,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-04-08T09:09:42.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lanyrd.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}},"created_at":"2012-11-13T14:41:20.000Z","updated_at":"2025-03-08T21:01:00.000Z","dependencies_parsed_at":"2023-01-11T16:49:10.874Z","dependency_job_id":null,"html_url":"https://github.com/lanyrd/mysql-postgresql-converter","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/lanyrd%2Fmysql-postgresql-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanyrd%2Fmysql-postgresql-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanyrd%2Fmysql-postgresql-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanyrd%2Fmysql-postgresql-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lanyrd","download_url":"https://codeload.github.com/lanyrd/mysql-postgresql-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254430331,"owners_count":22069909,"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-08-03T01:02:29.200Z","updated_at":"2025-05-15T22:11:50.318Z","avatar_url":"https://github.com/lanyrd.png","language":"Python","funding_links":[],"categories":["Python","Compiled list","Utilities"],"sub_categories":["plv8:"],"readme":"MySQL to PostgreSQL Converter\n=============================\n\nLanyrd's MySQL to PostgreSQL conversion script. Use with care.\n\nThis script was designed for our specific database and column requirements -\nnotably, it doubles the lengths of VARCHARs due to a unicode size problem we\nhad, places indexes on all foreign keys, and presumes you're using Django\nfor column typing purposes.\n\nHow to use\n----------\n\nFirst, dump your MySQL database in PostgreSQL-compatible format\n\n    mysqldump --compatible=postgresql --default-character-set=utf8 \\\n    -r databasename.mysql -u root databasename\n\nThen, convert it using the dbconverter.py script\n\n`python db_converter.py databasename.mysql databasename.psql`\n\nIt'll print progress to the terminal.\n\nFinally, load your new dump into a fresh PostgreSQL database using: \n\n`psql -f databasename.psql`\n\nMore information\n----------------\n\nYou can learn more about the move which this powered at http://lanyrd.com/blog/2012/lanyrds-big-move/ and some technical details of it at http://www.aeracode.org/2012/11/13/one-change-not-enough/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanyrd%2Fmysql-postgresql-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanyrd%2Fmysql-postgresql-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanyrd%2Fmysql-postgresql-converter/lists"}