Before that I thought it was a problem with the framework.
I used Lumen/Laravel framwork, and it always return this exception:
Packets out of order. Expected 1 received 10. Packet size=40
This is my issue in Laravel Framwork: https://github.com/laravel/framework/issues/27951
I tested it with native code and still returned this error.
This may be a bug in PDO MySQL, I don’t know what to do now.