If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Method to UPDATE table from Remote Database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-03, 15:59
brendanwov brendanwov is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Method to UPDATE table from Remote Database

I have found myself in a precarious situation.

I am using a win32 application that uses MyODBC to write to a MySQL database. I need to use the data in one of these tables to update a table in an installation of MySQL I have on a seperate Linux server.

I have been trying to write the script in PHP but my attempts thus far have not been encouraging.

I plan to execute the PHP script on the win32 box and have already setup permissions for the Linux box to receive remote connections from the win32 box.

I do not need to run this script regularly by CRON. I just need to do it once.

I am sure there is a tutorial or code example out there but I have been unable to find one. Can anyone provide me a resource to look at?

I would appreciate it quite a bit!

Thanks!

Brendan
Reply With Quote
  #2 (permalink)  
Old 10-18-03, 16:38
jaofos jaofos is offline
Registered User
 
Join Date: Oct 2003
Posts: 10
From the linux box can you do:

mysqldump -h <nt-sql-server> -u <user> -p<pass> <database> <table> > tmp.sql

Then do:

mysql -u <user> -p<pass> -D <database> < tmp.sql
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On