{"id":15187430,"url":"https://github.com/uts58/mysql-to-pgsql","last_synced_at":"2026-02-25T18:32:10.655Z","repository":{"id":58260685,"uuid":"530823904","full_name":"uts58/mysql-to-pgsql","owner":"uts58","description":"Mysql to PGsql using python, pandas, sqlalchemy \u0026 some other libs","archived":false,"fork":false,"pushed_at":"2022-08-30T21:56:06.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T19:38:08.970Z","etag":null,"topics":["migration","mysql","mysql-migration","mysqltopgsql","pgsql","postgres","postgresql","postgresql-migration"],"latest_commit_sha":null,"homepage":"","language":"Python","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/uts58.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":"2022-08-30T20:43:22.000Z","updated_at":"2022-08-30T21:38:39.000Z","dependencies_parsed_at":"2022-08-31T20:41:24.569Z","dependency_job_id":null,"html_url":"https://github.com/uts58/mysql-to-pgsql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uts58/mysql-to-pgsql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uts58%2Fmysql-to-pgsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uts58%2Fmysql-to-pgsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uts58%2Fmysql-to-pgsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uts58%2Fmysql-to-pgsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uts58","download_url":"https://codeload.github.com/uts58/mysql-to-pgsql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uts58%2Fmysql-to-pgsql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29834618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T17:57:15.019Z","status":"ssl_error","status_checked_at":"2026-02-25T17:56:11.472Z","response_time":61,"last_error":"SSL_read: 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":["migration","mysql","mysql-migration","mysqltopgsql","pgsql","postgres","postgresql","postgresql-migration"],"created_at":"2024-09-27T18:21:41.273Z","updated_at":"2026-02-25T18:32:10.606Z","avatar_url":"https://github.com/uts58.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MYSQL-TO-PGSQL\n\nScript for migrating data from **Mysql** to **Postgresql**. This script clones data only for now.\n\nPython 3.6 or greater version is required.\n****\n***USE IT AS YOUR OWN RISK***\n****\n\n## Install Packages\n\nRun:\n\n```\npip install requirements.txt\n```\n\n****\n\n## Quick Start\n\nInstall requirements first\n\n- Clone package\n- Install requirements\n- Create schema and their tables as per PGsql guidelines, while keeping as many similarities possible with old mysql. \n- Edit `config.py`\n- Run `python3 main.py`\n\nConfig\n\n- `MYSQL_HOST` = mysql ip/host address\n- `MYSQL_PORT` = mysql port\n- `MYSQL_USER` = mysql username\n- `MYSQL_PASSWORD` = mysql password\n- `MYSQL_DATABASE` = old mysql database\n- `MYSQL_TABLE` = old mysql rows\n- `MYSQL_BOOL_TABLE_ROWS` = pymysql returned \n- `MYSQL_LIMIT_OFFSET` = this script copies data in chunks to keep memory consumption low. Please specify start and increment value. Ex: 0, 500000\n\n\n- `POSTGRES_HOST` = pgsql ip/host address\n- `POSTGRES_PORT` = pgsql port\n- `POSTGRES_USER` = pgsql username\n- `POSTGRES_PASSWORD` = pgsql password\n- `POSTGRES_DATABASE` = target pgsql database\n- `POSTGRES_TABLE` = target pgsql database\n\n\n- `REPLACE_x00` = mysql supports \"\\x00\" or NUL char while PGsql doesn't. So your might script throw error if your data contains NUL char. Set this to None to ignore this, otherwise '\\x00' will be replaced with space (\" \")  \n****\n\n# TO-DOs\n\n- Add schema migration\n- Functions migration as well? This might be impossible.\n\n**** \n\n# Issues, suggestions and contributing\n\nIf you run into any issues while using the bot or if you want to request any changes or new features, open a new issue\nto let us know.\n\nIf you would like to contribute to the development and profitability of the bot, simply open a PR or let us know.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futs58%2Fmysql-to-pgsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futs58%2Fmysql-to-pgsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futs58%2Fmysql-to-pgsql/lists"}