pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedError in restore the Database in Postgres
2+ messages / 2 participants
[nested] [flat]
* Error in restore the Database in Postgres
@ 2008-04-17 10:38 dipesh <dipesh.mistry@mobilefundas.com>
0 siblings, 1 reply; 2+ messages in thread
From: dipesh @ 2008-04-17 10:38 UTC (permalink / raw)
To: pgsql-sql
Dear Sir,
I have Mysql database backup file ( xyz.sql ). Now i want to restore
this ( xyz.sql ) file into Postgres Database.
I try following command to restore but Postgres gives me the Error.
psql -d tracker -f /home/postgres/backup/tracker_db.sql
In xyz.sql file Lock Table; statement is written on each table.
I use Postgres 8.1 version.
Kindly Help me as early as possible. Or, give me another command.
--
With Warm Regards,
Dipesh Mistry
Information Technology Dept.
GaneshaSpeaks.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Error in restore the Database in Postgres
@ 2008-04-17 11:01 Richard Huxton <dev@archonet.com>
parent: dipesh <dipesh.mistry@mobilefundas.com>
0 siblings, 0 replies; 2+ messages in thread
From: Richard Huxton @ 2008-04-17 11:01 UTC (permalink / raw)
To: dipesh <dipesh.mistry@mobilefundas.com>; +Cc: pgsql-sql
dipesh wrote:
> Dear Sir,
> I have Mysql database backup file ( xyz.sql ). Now i want to restore
> this ( xyz.sql ) file into Postgres Database.
> I try following command to restore but Postgres gives me the Error.
You have a mysql dump, which is designed to restore to a MySQL database.
It will include mostly standard SQL and also all the specific MySQL
differences.
You'll need to convert it to produce something that PostgreSQL can
understand.
http://pgfoundry.org/search/?type_of_search=soft&words=mysql&Search=Search
Perhaps one of these two projects:
http://pgfoundry.org/projects/mysql2pgsql/
http://pgfoundry.org/projects/my2postgres/
--
Richard Huxton
Archonet Ltd
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-04-17 11:01 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-04-17 10:38 Error in restore the Database in Postgres dipesh <dipesh.mistry@mobilefundas.com>
2008-04-17 11:01 ` Richard Huxton <dev@archonet.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox