How to copy tables from one website to another with php?

Posted by Lost_in_code on Stack Overflow See other posts from Stack Overflow or by Lost_in_code
Published on 2010-03-28T21:15:19Z Indexed on 2010/03/28 21:43 UTC
Read the original article Hit count: 104

Filed under:
|
|

I have 2 websites, lets say - example.com and example1.com

example.com has a database fruits which has a table apple with 7000 records.

I exported apple and tried to import it to example1.com but I'm always getting "MYSQL Server has gone away" error. I suspect this is due to some server side restriction.

So, how can I copy the tables without having to contact the system admins? Is there a way to do this using PHP? I went through example of copying tables, but that was inside the same database.

Both example.com and example1.com are on the same server.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php