title: MySQL server has gone away - Packets out of order. Expected 0 received 1. Packet size=72
body: <p>I tried to use php to connect to a MySQL sever running on another computer on the same network.
  Server IP: 192.168.0.111
  My IP: 192.168.0.109
  I am currently using XAMPP which I just upgraded to version 8.0.0. After the upgrade, I got a few errors on my screen:</p>
  <p>Warning: Packets out of order. Expected 0 received 1. Packet size=72 in C:\xampp\htdocs\submit.php on line 95
  Warning: mysqli::__construct(): Error while reading greeting packet. PID=28684 in C:\xampp\htdocs\submit.php on line 95
  Warning: mysqli::__construct(): (HY000/2006): MySQL server has gone away in C:\xampp\htdocs\submit.php on line 95
  Connection failed: MySQL server has gone away</p>
  <p>MySQL server is running on the default port 3306 and here are the latest logs:
  2020-12-27 16:11:21 29 [Warning] IP address '192.168.0.109' has been resolved to the host name '192.168.0.109', which resembles IPv4-address itself.
  2020-12-27 16:11:21 29 [Warning] Aborted connection 29 to db: 'unconnected' user: 'unauthenticated' host: '192.168.0.109' (This connection closed normally without authentication)</p>
  <p>The server is not using any password at the moment.</p>
  <p>What can I do to fix this issue?
  Thanks.</p>
  <p>[update] I see no errors when I use server name as 'localhost' when the php file is on the MySQL server.</p>