Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

federico_mameli's avatar

MariaDB fails connection on production in laravel vapor

I have a project with Laravel 9 that has to connect with a maria DB database (this is not the main database), in my local environment (with laravel sail) works, but when I try to run the same query from the production (application deployed with vapor) it gives this error: SQLSTATE[HY000] [2006] MySQL server has gone away.

As configuration, I use the same as MySql.

Can anyone help me?

thanks.

0 likes
0 replies

Please or to participate in this conversation.