MySQL Forums
Forum List  »  Newbie

Re: Extracting databases from a MySQL dump file
Posted by: Peter Brawley
Date: August 05, 2020 12:11PM

Easy to do with a script eg in PHP ... search the file for Use commands, write each block, beginning with one such command and ending just before the next, to a file named <x>.sql where x is the trimmed word following 'use '.

Options: ReplyQuote


Subject
Written By
Posted
Re: Extracting databases from a MySQL dump file
August 05, 2020 12:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.