DEV Community

loading...

Discussion on: Upgrading to PHP 7.4

Collapse
devvyd profile image
Dāvis Naglis

Good job.
Switched to PHP 7.4 yesterday. Ended up having a "MySQL server gone away" error when working with Laravel. Weirdly enough, the fix was to change MySQL authentication method to caching_sha2_password.

Collapse
anandpushkar088 profile image
Pushkar Anand Author

MySQL 8.X uses caching_sha2_password as the default authentication mechanism.

Collapse
devvyd profile image
Dāvis Naglis

I still had it on auth_socket as authentication mechanism (after I reinstalled MySQL).