> Hello I have a problem, I want to migrate the data of a postgres' database to a mysql's database, this because i need to move to a windows.
I tried making a postgres' backup using pg_dump, but this file doesn't
have the insert in Transac-sql.
Any help is welcome
txs in advance!!
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives? http://archives.postgresql.org 5 14245
Fabio Benavides Murillo wrote: Hello
I have a problem, I want to migrate the data of a postgres' database to a mysql's database, this because i need to move to a windows.
I tried making a postgres' backup using pg_dump, but this file doesn't
have
the insert in Transac-sql.
Any help is welcome
txs in advance!!
You can run PostgreSQL on windows.
-Robby
--
Robby Russell, | Sr. Administrator / Lead Programmer
Command Prompt, Inc. | http://www.commandprompt.com rr******@comman dprompt.com | Telephone: (503) 222.2783
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives? http://archives.postgresql.org
On Thu, 2003-10-02 at 08:49, Fabio Benavides Murillo wrote: Hello
I have a problem, I want to migrate the data of a postgres' database to a mysql's database, this because i need to move to a windows.
You might also want to explore running PostgreSQL on windows. Currently
you can use Cygwin to stably run the current version of Pg. There is
also a native windows port on the way, if it's for development uses you
might want to test the beta.
I tried making a postgres' backup using pg_dump, but this file doesn't have the insert in Transac-sql.
Transact-SQL is actually Sybase's and MS SQL Server's dialect of SQL.
Perhaps you're referring to the use of COPY instead of INSERT
statements? If so see the help for pg_dump as you can have data dumped
as individual inserts (the -d and -D switches).
You'll probably have to do some editing of the dump by hand as well; to
change sequences to MySQL's auto_increment, remove any schema usages,
etc. I'm unaware of any automated tools as not many people migrate in
that direction ;).
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
Well, I've not done it, but you could do a
pg_dump -s dbname >schema.sql
pg_dump -d -a dbname >data.sql
to get just the schema in one file and the data in inserts in another
file. Then you could use a perl script driven by SQL::Translator (check http://www.cpan.org) to translate the schema from Pg to MySQL. Create
the schema in MySQL, then load via the inserts.
In theory, should be easy; reality on the other hand...
Good luck,
Scott
On Thu, 2003-10-02 at 16:17, Arguile wrote: On Thu, 2003-10-02 at 08:49, Fabio Benavides Murillo wrote: Hello
I have a problem, I want to migrate the data of a postgres' database to a mysql's database, this because i need to move to a windows. You might also want to explore running PostgreSQL on windows. Currently you can use Cygwin to stably run the current version of Pg. There is also a native windows port on the way, if it's for development uses you might want to test the beta. I tried making a postgres' backup using pg_dump, but this file doesn't have the insert in Transac-sql.
Transact-SQL is actually Sybase's and MS SQL Server's dialect of SQL.
Perhaps you're referring to the use of COPY instead of INSERT statements? If so see the help for pg_dump as you can have data dumped as individual inserts (the -d and -D switches).
You'll probably have to do some editing of the dump by hand as well; to change sequences to MySQL's auto_increment, remove any schema usages, etc. I'm unaware of any automated tools as not many people migrate in that direction ;). ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
--
------------------------------------------------------------------------
Scott Cain, Ph. D. ca**@cshl.org
GMOD Coordinator ( http://www.gmod.org/) 216-392-3087
Cold Spring Harbor Laboratory
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives? http://archives.postgresql.org
In article <10************ *********@local host.localdomai n>,
Scott Cain <ca**@cshl.or g> writes: Well, I've not done it, but you could do a pg_dump -s dbname >schema.sql pg_dump -d -a dbname >data.sql
to get just the schema in one file and the data in inserts in another file. Then you could use a perl script driven by SQL::Translator (check http://www.cpan.org) to translate the schema from Pg to MySQL. Create the schema in MySQL, then load via the inserts.
I'd replace the second call of pg_dump by a "COPY mytbl TO 'mytbl.txt'"
for each table in the DB and import it into MySQL with "LOAD DATA
[LOCAL] INFILE". This would be much faster than INSERTing.
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
Arguile schrieb: You might also want to explore running PostgreSQL on windows. Currently you can use Cygwin to stably run the current version of Pg. There is also a native windows port on the way, if it's for development uses you might want to test the beta.
I have searched the website but I cannot find any 7.4 beta binaries for
windows...
I thought the windows version was postponed until 7.5?
Thomas
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: OneSolution |
last post by:
I need to decide on which database system to use for our company. What is
the popular opinion on PostGres vs. MySql?
Thanks,
Santosh
|
by: Th3L0rD |
last post by:
Hi,
I'm porting some php code from mysql to postgres but I canàt find
something equivalent to mysql_select_db(). I use this function to switch
from a DB on machine 1 to a db on machine 2. Is there something similar for
pg ? I'm using php 4.2.2 on a linux box
thanks
thl
|
by: Phil Powell |
last post by:
I've read some online resources that utilize various MySQL
command-line actions to migrate data from Access to MySQL.
The situation is this: a group of co-workers of mine will be using an
Access db in a shared source (for now, a directory.. ???) to be able
to generate reports on the fly. What they want to do is to be able to
migrate that data to a MySQL db instance that currently exists on a
different server.
What would be the best...
|
by: Rob Young |
last post by:
Postgres to Mysql
I've administrated a few Postgres database servers in the past, but
have just started working with mysql, as I've volunteered to admin the
mysql server run by my school's comp sci student organization. I'm
going through the mysql manual on the mysql website right now,
starting to figure out the differences and similarities between the
systems. It seems like security and user administration is handled a
bit differently...
|
by: wlcna |
last post by:
mysql v4.0.16:
I had been using mysql with innodb and thought that was fine, until i used
it for something requiring a few - perhaps slightly involved - joins, and
have now seen the performance become totally unacceptable.
I have a query that takes over 35 seconds using mysql and innodb, for
reasons that are completely a mystery to me, in a result set consisting of
only a handful of items.
| |
by: Fabio Benavides Murillo |
last post by:
Hello
I have a problem, I want to migrate the data of a postgres' database to a
mysql's database, this because i need to move to a windows.
I tried making a postgres' backup using pg_dump, but this file doesn't have
the insert in Transac-sql.
Any help is welcome
|
by: Gaetano Mendola |
last post by:
I found this article:
http://www.serverwatch.com/news/article.php/10824_1126981_Ext
that is clear out dated, it's anyway a good comparison with
mysql.
Do you know if someone did the TPC-C test with
7.4.X version ?
|
by: warwick.poole |
last post by:
I am interested in finding out about Enterprise scale Postgres
installations and clustering, especially on Linux.
Essentially I would like to know the possibility that Postgres can store
the database data in a central location (ex: on a SAN fiber array) and
have a cluster of machines sharing processor/RAM/IO bandwidth to do the
application processing. Or perhaps there is another solution similar to
what www.emicnetworks.com have...
|
by: fjm67 |
last post by:
I am new to PHP but not so new to Postgres. If someone can either
direct me to some howto or even provide me with an example, I would be
grateful.
I would like to know if it is possible to create an HTML form text box
that can draw information out of the database and display it in the
HTML form text box. I have purchased a few books on the integration of
Postgres and PHP but can find no such example. Maybe there is a better
way of doing...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |