Mysqli_real_connect(): Error while reading greeting packet

What issue or error are you experiencing?

How can I solve such issue?
from the log I found the following…
[13-Oct-2023 08:27:12 UTC] PHP Warning: mysqli_real_connect(): Error while reading greeting packet. PID=23836 in C:\Users\adonias.andarge\Local Sites\test1\app\public\wp-includes\class-wpdb.php on line 2035

[13-Oct-2023 08:49:31 UTC] PHP Warning: mysqli_real_connect(): (HY000/2006): MySQL server has gone away in C:\Users\adonias.andarge\Local Sites\test1\app\public\wp-includes\class-wpdb.php on line 2035

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

System Details

  • Local Version:

  • Operating System (OS) and OS version:

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

If you create a new, blank site in Local can you access that okay? If you can, then you may want to try reimporting the site getting the errors. The steps would look like this:

  • Locate the site files on your machine, and save a copy of them to your desktop. If you click Go to Site Folder under your site name it should take you right to where they are located.
  • Once you have those copied, completely delete the site from Local
  • Restart Local/your machine
  • Reimport the site back into Local. You can refer here on how to Restore from only Local site files

Thank you so much @Nick-B. You just saved my intire website. Thanks!!!

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.

Glad to hear it @saduka! Happy Developing :green_heart: