How can I reverse Multi-DB?

I have Multi-DB installed with 256 databases. I need to reverse what Multi-DB has done to convert everything back into a single database (I have my reasons, but they’re not necessary for this topic).

I have managed to get all of the tables from the 256 databases back into a single database, however I’m unable to figure out how to get WordPress to see all the sites from the other tables.

Does anybody have any ideas?