If the databases are on the same host you could use this for image category records:
INSERT INTO database1.table1_imagecategory (imgcat_name, imgcat_maxsize, imgcat_maxwidth, imgcat_maxheight, imgcat_display, imgcat_weight, imgcat_type, imgcat_storetype) SELECT imgcat_id, imgcat_name, imgcat_maxsize, imgcat_maxwidth, imgcat_maxheight, imgcat_display, imgcat_weight, imgcat_type, imgcat_storetype FROM database2.table2_imagecategory;
and this for the image records:
INSERT INTO database1.table1_image (image_id, image_name, image_nicename, image_mimetype, image_created, image_display, image_weight, imgcat_id) SELECT image_id, image_name, image_nicename, image_mimetype, image_created, image_display, image_weight, imgcat_id FROM database2.table2_image;
If both databases are not accessible via sql, you may need to export and load using a csv file or a temporary table in your current database.
Note:
- database1 = your new xoops install
- table1 = your new table prefix
- database2= your old xoops install
- table2 = your old table prefix