Link to home
Start Free TrialLog in
Avatar of cgriffith4
cgriffith4

asked on

3 different MySQL databases into 1

I have 3 different MySQL servers all containing different information.  There are some custom reports we would like to generate daily which we currently spend about an hour a day doing manually.   If we had all the tables needed all located in the same database we could fully automate what we need to do saving us an hour of day of time.  

The plan is to have cron dump the database tables from all 3 servers and scp them to a new server we are going to use just for reporting.  Can someone show me the best way dump just certain database tables then merge all the tables into a new database?
SOLUTION
Avatar of johanntagle
johanntagle
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arnold
Do you have a system that can query all MySQL servers?
You could script this using perl from a system that can query each server as well as have a local server.
You could also have the data replicated among the servers.
Avatar of cgriffith4
cgriffith4

ASKER

All my servers are local. How would I do this in perl?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial