Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linked server like M$ has?

Status
Not open for further replies.

darwin101

Programmer
Mar 7, 2001
156
US
Hi all
Is there a way to link 2 mysql servers (5.0 and 4.xx) like you can do with sql server? One of the mysql server is "inside" the fire wall and the other is "outside" of the fire wall.

Much thanks ;)
 
Do you mean you want both servers to host the same data? MySQL uses "replication" or "clustering" to achieve that. Both techniques are explained in the manual.
 
what i want to do is copy data from the server outside the firewall to the server behind the firewall then delete the data on the server outside the firewall. i was hoping to write a proc to do this.. or use some other tools. i just haven't found a way to do this like i can with sql server.
thanks
 
Well, you can use "mysqldump" on one server, piping the output to "mysql" on the other server, which should do what you want. Example:
[tt]
c:\mysql\bin\mysqldump -h firstserver -u root -prootpwd dbname | c:\mysql\bin\mysql -h secondserver -u root -prootpwd dbname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top