将 MySQL 转换为 PostgreSQL
我想从 MySQL 迁移到 PostgreSQL,这还不是一个实时站点,即将推出,MySQL 中的模式已准备就绪,但考虑到业务模型,我想要一个更好的可扩展数据库,因此要将 MySQL 转换为 PostgreSQL,请执行以下操作我需要逐个表手动执行此操作,还是可以使用 GUI 工具(或脚本)来自动执行表/文件值的转换?
我的应用程序是用 codeingiter PHP 编写的。
I want to move from MySQL to PostgreSQL, this is not a live site as yet, going to launch soon and the schema is all ready in MySQL but given the business model I want a better scalable DB, so to convert MySQL to PostgreSQL, do i need to do it manually table by table or are there are GUI tools I can use (or scripts) to automate this conversion for tables/file values?
My app is written in codeingiter PHP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
唯一对我有用的是 Navicat Premium,你可以获取 Navicat 并使用它免费14天,足以进行数据库迁移...
只需创建2个连接(一个源mysql,另一个目标postgresql),然后选择“工具”->“工具”数据传输,并且有效!
我尝试过的其他工具:
使用 mysqldump 转储作为 postgresql 兼容 - 不起作用,因为 ansi sql - 不起作用,尝试了 pgload - 不起作用,尝试过
https://github.com/AnatolyUss/nmig
Nmig 正确创建了表,但数据丢失。
The only thing did the job for me was Navicat Premium, You can grab Navicat and use it free for 14 days, which is enough for DB migration...
Just create 2 connections (one source mysql, another target postgresql), and choose Tools -> Data Transfer, and it works!
Other tools I tried:
dumping with mysqldump as postgresql compatible - didn't work, as ansi sql - didn't work, tried pgload - didn't work, tried with
https://github.com/AnatolyUss/nmig
Nmig created tables properly but data was missing.
MySQL 是一个高度可扩展的数据库,互联网上一些最大、最活跃的网站都在使用它。我有一些非常好的测试基准,表明 Postgres 在切换之前会给你带来显着的优势。
MySQL is a highly scalable database used by some of the largest and most active sites on the interwebs. I'd have some really good testing benchmarks showing Postgres is going to give you a significant advantage before switching over.