This describes how to turn off IPv6 on older Macs.
Turning off IPv6 can resolve some obscure networking issues. These instructions work for operating systems such as Monterey, which use "System Preferences" instead of "System Settings" used in more modern versions of the OS.
Go to the Apple menu, then choose "System Preferences". Click "Network". Click "Wifi" in the list on the left. Note: if you connect with a cable or other interface, choose it instead. Click "Advanced". Click the "TCP/IP" tab at the top. Next to "Configure IPv6", choose "Link-local only". Click "OK". If requested, click "Apply".
Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 35
Warning: mysqli_connect(): Error while reading greeting packet. PID=83047 in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 35
Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 35
Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 36
Could not connect to MySQL: