Solved

sync data between MySQL and Postgresql

Posted on 2013-01-06
9
631 Views
Last Modified: 2013-01-07
Say,
We wish to use JasperReportsServer 5, which seems to support postgresql as default.
Our data is in MySql 5 on Linux server.
Is there a simple way to sync the data between the 2?
0
Comment
Question by:shaunwingin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 24

Expert Comment

by:johanntagle
ID: 38750024
I think you should just configure Jasper to use mysql datasource.  That will be a way lot easier.  Go to section 4.1 of http://community.jaspersoft.com/documentation/jasperreports-server-administration-guide-v500
0
 

Author Comment

by:shaunwingin
ID: 38750058
Ok. How can I get the sample data from postgresql to MySql
0
 
LVL 24

Expert Comment

by:johanntagle
ID: 38750134
I don't believe you need to.  Jasper supports multiple data sources so you just add a mysql data source.  You will need to download the mysql jdbc driver from http://dev.mysql.com/downloads/connector/j/ and extract the jar file to the apache-tomcat/lib directory, restart tomcat (I just used the ctlscript.sh script to restart everything.)

In the data source definition you set Driver to com.mysql.jdbc.Driver and URL to something like jdbc:mysql://localhost:3306/test

That's as far as I've gone so far =)
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:shaunwingin
ID: 38750145
Tx. Its the sample data that was an issue for us...
0
 
LVL 24

Expert Comment

by:johanntagle
ID: 38750160
Again you can keep the postgresql data source with the sample data, then just add a mysql data source for your real data.  No need to transfer data from postgresql to mysql or vice-versa
0
 

Author Comment

by:shaunwingin
ID: 38750219
I've also my own data that wish to transfer - how can I import data to Postgre?
0
 
LVL 24

Expert Comment

by:johanntagle
ID: 38750597
Think you should file that as a separate question and provide details what exactly you want to do i.e. what is the format of the data, etc
0
 

Author Comment

by:shaunwingin
ID: 38750640
Can one have links to 2x data sources in JasperReportsServer? Please elaborate
Again you can keep the postgresql data source with the sample data, then just add a mysql data source for your real data.  No need to transfer data from postgresql to mysql or vice-versa
0
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
ID: 38750675
Follow the instructions in the documentation I mentioned above and you will realize you can add a mysql data source (and more) without removing the default postgresql data source.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question