-
Notifications
You must be signed in to change notification settings - Fork 0
Migration MySql Postgres
ngiger edited this page Jun 23, 2011
·
1 revision
Dazu kann z.B. das Ruby-Gem mysql2postgres gebraucht werden:
Unter Debian geht das wie folgt:
sudo apt-get install rake rubygems libpq-dev libmysqlclient-dev libmysql-ruby1.8
sudo gem install mysql pg mysql2psql
Dann eine Konfiguration wie folgt anlegen:
mysql:
hostname: 172.25.1.61
port: 3306
socket: /tmp/mysql.sock
username: elexis
password: elexisTest
database: elexis
destination:
# if file is given, output goes to file, else PostgreSQL
file: elexis_psql_dump.sql
postgres:
hostname: localhost
port: 5432
username: elexis
password: elexisTest
database: elexisJetzt kann das Ganze laufen
PATH=$PATH::/var/lib/gems/1.8/bin mysql2psql elexis_mysql_2_psql.yml