I would like to export the results of a SELECT query as valid SQL INSERTS and import it into another database (some records were accidentally deleted). Normally I would use PHPMyAdmin’s Export feature, but PHPMyAdmin is not available on one of the servers. I believe I can use a VIEW and mysqldump but I’m not sure where to start — I can’t find documentation stating how to dump just my view.
Share
Well, if you’re importing into one table 1:1, you can export it to a CSV file and then import the results.
Then you can import it manually by doing