BEGIN;
SET @position := 0;
// Если position UNIQUE
SELECT @max_pos := max(position) FROM product;
UPDATE product SET position = @max_pos + position;
//
UPDATE product SET position = (@position := @position+1) ORDER BY RAND();
COMMIT;
Sphinx currently just tries loading libmysqlclient.so (and libmariadb.so now) but does
*not* yet attempt to scan for all the different .so.18 or so.19 or so.20 etc versions.