I have two mysql databases that have almost the same structure and representing the data of the same web app but one of them represents the current version and second one was made long time ago.
How can I create the database with both dumps inside but with old_ prefix for tables from the first and new_ prefix for tables from the second database?
Is there any mysqldump options to setup the prefix or other solution?
This stored procedure gets the table list from MySQL’s inmemory tables in
information_schemaand automatically moves to another DB using theRENAMEcommand.