Add an index for mysql.