We recently moved our mysql version to mysql 8 but we are facing a really strange behavior some (valid) queries that would work before like a charm stopped working (sometimes) for no reason and mysql return an error but if we re-run it sometimes it works.
Here's an example :
UPDATE `Members` set `ProZipCode` = 75001, `ProCity` = 'Paris', `ActivationCode` = 'AAA-15372695', `State` = 1 WHERE `MemberId` = 42;
If i run this query 10 times in a row it will work like 6 times but 4 times it would throw an error (randomly) both in Laravel or in phpmyadmin :
Integrity constraint violation : Column 'ActivationCode' cannot be null
We are using mysql version 8.0.36
Edit with some asked clarification :
It seems downgrading to the latest mysql 5.7 version fixed our problem. We tried upgrading to the latest mysql 8 version but it didn't worked.
A really strange behaviour ...