TechMistress Posted January 27, 2010 Share Posted January 27, 2010 Hi all, I'm hoping there's an answer to this! I would like to export all of my databases. In phpMyAdmin, I selected the export, then chose all of the databases and of course then chose the standard filename structure. It exported them all in one big file. Is there a way to export them all at once, but as individual .sql files (without doing it one by one). Thanks! Link to comment https://forums.phpfreaks.com/topic/189935-export-multiple-individual-databases/ Share on other sites More sharing options...
jskywalker Posted January 30, 2010 Share Posted January 30, 2010 i dont think phpMyAdmin can do this.. but <?php echo exec('mysqldump db1 >db1.sql'); echo exec('mysqldump db2 >db2.sql'); ?> might do what you want (maybe you have to add username/passwords) Link to comment https://forums.phpfreaks.com/topic/189935-export-multiple-individual-databases/#findComment-1004232 Share on other sites More sharing options...
TechMistress Posted January 31, 2010 Author Share Posted January 31, 2010 thank you, I was able to write a script to do it with your help and using mysql dump! Link to comment https://forums.phpfreaks.com/topic/189935-export-multiple-individual-databases/#findComment-1004455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.