Hello all,
(mySQL server version 5.1.49-community; .NET connector v6.3.6)
I can't figure how to emulate mysqldump with the mysql/.NET connector. Here's the
situation.
Client app is located on site A, wants to dump the whole database from site B
onto another database on site C. I won't know if any of the three sites have
other tools (mysqldump, etc) available on-site, and I'd rather assume they
don't, so I have to do all the work from the client-app on Site A.
I know I could select * from the tables on site B and then insert each row
into the tables/db on site C, but that'd be dumb at the extreme, I suspect :)
Also, I thought of doing a SELECT * FROM table INTO OUTFILE 'file' but it's
a no-go : no way to know what OS and the file-system layout on the db server
are. Then there's the issue of fetching the file from the db server to the
client app, too.
So once again.. how can I copy a whole database from site B to site C,
using a client located on site A assuming there's only my client app
on site A, and only mySQL dbs (no tools) on sites B & C ?
Any thoughts on how I should proceed ?
Thanks,
-- Jeff
(mySQL server version 5.1.49-community; .NET connector v6.3.6)
I can't figure how to emulate mysqldump with the mysql/.NET connector. Here's the
situation.
Client app is located on site A, wants to dump the whole database from site B
onto another database on site C. I won't know if any of the three sites have
other tools (mysqldump, etc) available on-site, and I'd rather assume they
don't, so I have to do all the work from the client-app on Site A.
I know I could select * from the tables on site B and then insert each row
into the tables/db on site C, but that'd be dumb at the extreme, I suspect :)
Also, I thought of doing a SELECT * FROM table INTO OUTFILE 'file' but it's
a no-go : no way to know what OS and the file-system layout on the db server
are. Then there's the issue of fetching the file from the db server to the
client app, too.
So once again.. how can I copy a whole database from site B to site C,
using a client located on site A assuming there's only my client app
on site A, and only mySQL dbs (no tools) on sites B & C ?
Any thoughts on how I should proceed ?
Thanks,
-- Jeff