Converting from other Databases to PostgreSQL

From PostgreSQL wiki

(Difference between revisions)
Jump to: navigation, search
(Scripts, programs)
(Scripts, programs)
Line 80: Line 80:
 
* [http://www.pgsql.com/download/ Conversion tool for migrating from MySQL to PostgreSQL] by PostgreSQL Inc.
 
* [http://www.pgsql.com/download/ Conversion tool for migrating from MySQL to PostgreSQL] by PostgreSQL Inc.
 
* [http://en.wikibooks.org/wiki/Converting_MySQL_to_PostgreSQL Converting MySQL to PostgreSQL] - from en.wikibooks.org
 
* [http://en.wikibooks.org/wiki/Converting_MySQL_to_PostgreSQL Converting MySQL to PostgreSQL] - from en.wikibooks.org
* [http://convertdb.com/mysql/postgresql/ Migrate MySQL to PostgreSQL. Cross database bidirectional synchronization]
+
* [http://convertdb.com/mysql/postgresql/ Migrate MySQL to PostgreSQL. ] Cross database bidirectional synchronization
 
* [http://www.sourcefiles.org/Databases/Utilities/Conversion/my2pg.pl my2pg.pl] - A Perl script used to convert a MySQL database dump to PostgreSQL-compatible format, by Maxim Rudensky and Valentine Danilchuk
 
* [http://www.sourcefiles.org/Databases/Utilities/Conversion/my2pg.pl my2pg.pl] - A Perl script used to convert a MySQL database dump to PostgreSQL-compatible format, by Maxim Rudensky and Valentine Danilchuk
 
* [http://pgfoundry.org/projects/mysql2pgsql/ mysql2pgsql] - A Perl script used to convert MySQL databases dump to a PostgreSQL-compatible format
 
* [http://pgfoundry.org/projects/mysql2pgsql/ mysql2pgsql] - A Perl script used to convert MySQL databases dump to a PostgreSQL-compatible format

Revision as of 06:42, 11 July 2013

Contents

Non-specific

DBase II, III, IV+

DBF Format

FileMaker Pro

IBM DB2

Interbase

Microsoft Access

  • exportSQL - a Microsoft Access module which exports Access Database into MySQL, mSQL and PostgreSQL by Dobrica Pavlinusic. Based on the work of Pedro Freire
  • MDB Tools by Brian Bruns
    • A quick way to dump all tables as tsv or csv files
for TT in $(mdb-tables file.mdb); do
     mdb-export -Q -d $'\t' -D '%%Y-%%m-%%d %%H:%%M:%%S' file.mdb "$TT" > "${TT}.tsv"
done
for TT in $(mdb-tables file.mdb); do
     mdb-export -D '%%Y-%%m-%%d %%H:%%M:%%S' file.mdb "$TT" > "${TT}.csv"
done

Microsoft SQL Server

MySQL

Documentation

Scripts, programs

 # To install mysql2psql (under ubuntu 11.10): No need to get from github, just:
 sudo apt-get install ruby gems libmysqlclient-dev libpq-dev
 gem install mysql pg mysql2psql
 # To get info about the mysql socket:
 netstat -l | grep mysql
 mysql2psql # creates a .yml templae
 vi mysql2psql.yml # edit the template
 mysql2psql # connects to mysql database and write into postgres database

Oracle

Progress RDBMS

Converting PostgreSQL Databases to other Databases

Personal tools