Level 61
Then please write how you've solved it.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I just upgraded my Valet installation with homebrew to php 7.4. PHP is working fine but suddenly my Laravel log shows this 'MySQL server has gone away' error.
See below the solution that worked for me.
My quick solution was to edit my.cnf:
nano /usr/local/etc/my.cnf
Add this line:
default-authentication-plugin=mysql_native_password
Save the file and restart MySql with:
brew services restart mysql
Please or to participate in this conversation.