{"id":20229179,"url":"https://github.com/datpmt/mysql_to_psql","last_synced_at":"2026-05-11T17:38:16.463Z","repository":{"id":232834016,"uuid":"785297063","full_name":"datpmt/mysql_to_psql","owner":"datpmt","description":"MySQL to PostgreSQL Data Transfer","archived":false,"fork":false,"pushed_at":"2024-04-11T16:09:54.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T23:45:30.447Z","etag":null,"topics":["mysql-to-pgsql","mysql2pg","mysql2pgsql","mysqltopgsql"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/datpmt.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}},"created_at":"2024-04-11T15:47:02.000Z","updated_at":"2024-04-17T07:54:39.000Z","dependencies_parsed_at":"2024-04-11T19:08:00.658Z","dependency_job_id":"ac1199ae-e7c3-4db4-890e-9c34afb3776d","html_url":"https://github.com/datpmt/mysql_to_psql","commit_stats":null,"previous_names":["datpmt/mysql_to_psql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datpmt%2Fmysql_to_psql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datpmt%2Fmysql_to_psql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datpmt%2Fmysql_to_psql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datpmt%2Fmysql_to_psql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datpmt","download_url":"https://codeload.github.com/datpmt/mysql_to_psql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241670643,"owners_count":20000438,"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":["mysql-to-pgsql","mysql2pg","mysql2pgsql","mysqltopgsql"],"created_at":"2024-11-14T07:34:46.950Z","updated_at":"2026-05-11T17:38:11.438Z","avatar_url":"https://github.com/datpmt.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MySQL to PostgreSQL Data Transfer\n\nThis repository contains scripts to facilitate the transfer of data from a MySQL database to a PostgreSQL database. The process assumes that both databases share a common schema, including migrations in MySQL.\n\n## Prerequisites\n\nBefore using the scripts, ensure the following prerequisites are met:\n\n1. **MySQL Database**: Set up and populate a MySQL database with the desired schema and data.\n2. **PostgreSQL Database**: Create an empty PostgreSQL database with the same schema as the MySQL database. Ensure that the schema includes all necessary tables and columns.\n3. **Migrations**: Make sure that any necessary migrations for the MySQL schema are also applied to the PostgreSQL schema.\n\n## Usage\n\n1. **Clone the Repository**: Clone this repository to your local machine.\n    ```\n    git clone git@github.com:datpmt/mysql_to_psql.git\n    ```\n\n2. **Configure Connection Settings**: Open the `copy.rb` file and update the connection settings for both MySQL and PostgreSQL databases.\n3. **Transfer Data**: Run the provided script to transfer data from MySQL to PostgreSQL.\n    ```\n    ruby copy.rb\n    ```\n\nThis script will connect to both databases, fetch data from MySQL, and insert it into PostgreSQL.\n\n## Additional Notes\n\n- Make sure both databases are accessible from the machine where the script is being run.\n- It's recommended to run the transfer script in a controlled environment to avoid any unintended data loss or corruption.\n- Depending on the size of the data, the transfer process may take some time to complete. Monitor the script for any errors or warnings during execution.\n\n## Contributors\n\n- [datpmt](https://github.com/datpmt)\n\n## License\nCopyright (c) 2021 datpmt.\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatpmt%2Fmysql_to_psql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatpmt%2Fmysql_to_psql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatpmt%2Fmysql_to_psql/lists"}