# Mysqli\_real\_connect(): Error while reading greeting packet

**URL:** <https://community.localwp.com/t/mysqli-real-connect-error-while-reading-greeting-packet/39525>\
**Category:** Support\
**Tags:** windows-10\
**Created:** [October 13, 2023, 7:13am UTC](https://community.localwp.com/t/mysqli-real-connect-error-while-reading-greeting-packet/39525 "2023-10-13T07:13:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saduka](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/saduka/32/19831_2.png) [@saduka](https://community.localwp.com/u/saduka)\
**Post date:** [October 13, 2023, 7:13am UTC](https://community.localwp.com/t/mysqli-real-connect-error-while-reading-greeting-packet/39525/1 "2023-10-13T07:13:02Z")

</div>

### What issue or error are you experiencing?

 ![local_error](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/f/0/f09982c5339cd9093c111c1e829a8172812b1504.png)  
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](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **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.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 13, 2023, 1:26pm UTC](https://community.localwp.com/t/mysqli-real-connect-error-while-reading-greeting-packet/39525/2 "2023-10-13T13:26:51Z")

</div>

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](https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/#restore-local-site-from-site-files)

---

<div class="post-metadata">

**Author:** ![saduka](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/saduka/32/19831_2.png) [@saduka](https://community.localwp.com/u/saduka)\
**Post date:** [October 21, 2023, 7:07am UTC](https://community.localwp.com/t/mysqli-real-connect-error-while-reading-greeting-packet/39525/3 "2023-10-21T07:07:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [October 22, 2023, 7:08pm UTC](https://community.localwp.com/t/mysqli-real-connect-error-while-reading-greeting-packet/39525/4 "2023-10-22T19:08:24Z")

</div>

Closed on October 22, 2023, 7:08pm UTC

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

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 26, 2023, 4:40pm UTC](https://community.localwp.com/t/mysqli-real-connect-error-while-reading-greeting-packet/39525/5 "2023-10-26T16:40:45Z")

</div>

Glad to hear it @saduka! Happy Developing 💚
