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(): (HY000/1040): Too many connections in /Library/WebServer/Documents/Owen2/Inc/Log.inc.php on line 8
Could not connect to MySQL: Too many connections