The second part of the photometric catalogue of Shakhbazian compact groups of galaxies contains optical and geometrical properties of another 24 groups (Shkh 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287). As in the first paper photometric data were obtained from the COSMOS/UKST catalogue of the Southern sky with δ ≤ +2°30′. The survey of compact galaxy groups by Shakhbazian, Petrosian, Baier, and Tiersch is a basis for studying dynamical processes in such groups.