If you don't have access to the GUI apps to set the date, such as during an installation, it can be useful to set it using the terminal. This is easy as long as you remember the (somewhat unusual) order of the components of the date and time.
Use this command: date MMddhhmmyy
Where: MM is the month number dd is the day number hh is the hours (in 24 hour format) mm is minutes yy is the year (use yyyy if you prefer)
Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 32
Warning: mysqli_connect(): Error while reading greeting packet. PID=74522 in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 32
Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 32
Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 33
Could not connect to MySQL: