I have 2 server on which they have different time, I'd like to know how to make they both have the same time. Here's my time difference:
SELECT @@global.time_zone, @@session.time_zone; -- this is my correct time
SELECT now()
it returns the following:
SELECT @@global.time_zone, @@session.time_zone;
SELECT now();
+--------------------+---------------------+
| @@global.time_zone | @@session.time_zone |
+--------------------+---------------------+
| SYSTEM | SYSTEM |
+--------------------+---------------------+
1 row in set
+---------------------+
| now() |
+---------------------+
| 2015-12-15 07:04:15 |
+---------------------+
1 row in set
and on the other server i got this (incorrect time or different to the other):
SELECT @@global.time_zone, @@session.time_zone;
SELECT now();
+--------------------+---------------------+
| @@global.time_zone | @@session.time_zone |
+--------------------+---------------------+
| SYSTEM | SYSTEM |
+--------------------+---------------------+
1 row in set
+---------------------+
| now() |
+---------------------+
| 2015-12-15 13:02:05 |
+---------------------+
1 row in set
Is that possible, considering that correct server is physically on Peru and the other is on Spain?. I have Linux on both server and i want to know exactly what is suppose to modify on my config(if any). I also have access to my servers by ssh, but I'm interested to make it right on my second server.