I've found an interesting solution to a problem I have with the 1st answer on this StackOverflow question: 1st answer The problem is that it doesn't work as I expected. If my table is empty, the first bulk insert work correctly but LAST_INSERT_ID returns 1 when the bulk has inserted 100 lines. If I change it and put 100 simple Insert it works. autoinc_loc_mode is set to 1.
Is there a setting to be changed?