Say I have a VIEW on my database, and I want to send a file to someone to create that views output as a real TABLE on their database.
mysqldump of course only exports the 'create view...' statement (well ok it includes the create table, but no data)
What I have done is simply duplicate the view as a real table and dump that. But for a big table its slow and wasteful. (create table tmptable select * from myview)
Short of creating a script that mimics the behaviour of mysqldump and does this, is there a better way?
Thanks!