ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
Nunca compare
integer para strings em MySQL. Se id é int , remova as aspas. ALTER TABLE `table` ADD INDEX `product_id_index` (`product_id`)
integer para strings em MySQL. Se id é int , remova as aspas.