Load the library you want to export from, select all the files, and do File > Export Playlist and select the MPL format. Export it to say, your Desktop.
Load the library you want to import to, and Import Playlist, selecting the MPL you just created above.