I have two lamp stacks that are remote to one another. I have to send the results of a query from stack one to a table on stack 2. I'm not sure what the best method is to use.
I have considered setting up an API but am not sure if this is the right application for an API. I have considered, having stack one export a sql dump and the other server download then import, but this feels very insecure. Any advice would be greatly appreciated.