I have done the depot application using mysql... Now i am in need to use postgres... So i need to dump data from mysql database "depot_development" to postgres database "depot_develop"...
A:
Here you can find some interesting links http://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL#MySQL
Simon
2010-10-21 15:42:14
i did try that but the syntax where not matching with psql... so had many errors.. it didnt work wel... thanks..
zealmurugan
2010-10-22 10:34:13
What errors did you exactly get?
Simon
2010-10-23 16:47:03
A:
Have you tried to copy the tables from one database to the other:
a) export the data from MySQL as a CSV file like:
$> mysql -e "SELECT * FROM table" -h HOST -u USER -p PWD -D DB > /file/path.csv'
and then,
b) import it into Postgres like:
COPY table FROM '/file/path.csv' WITH CSV;
Kosmas
2010-10-21 16:40:12
I had the problem of logging in without data in the users table... so i had no choice to insert data copying from the already existing table... so manually inserted data in psql... so the it was ok to work.. thank you..
zealmurugan
2010-10-22 10:33:13