When the login window appears, release the shift key.
Log in normally. There should be a "safe boot notification" visible in the upper-right corner.
Steps to Boot Into Safe Mode on Apple Silicon Macs
Shut down the computer.
Hold down the power button for 10 seconds, and wait while the machine restarts.
Continue to hold the button until you see startup options screen.
Choose the startup disk, hold shift, and select "Continue in Safe Mode".
Log in normally.
Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Log.inc.php on line 8
Warning: mysqli_connect(): Error while reading greeting packet. PID=23747 in /Library/WebServer/Documents/Owen2/Inc/Log.inc.php on line 8
Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Log.inc.php on line 8
Could not connect to MySQL: MySQL server has gone away