I want to setup time_zone for some other time zone different than that of my system like (GMT - 7:00). I tried
SET time_zone = '-07:00';
But this changed it just for a MYSQL Session and is not permanent as the time_zone returns back to system time_zone after i restart mysql service.
I think you can retrieve the server and client time_zone settings:
You can also change the client timezone, or the timezone for the entire MySQL instance.
If you have server time_zone set at MySQL instance startup, you can modify the /etc/my.cnf file (or wherever your mysql instance initialization parameters are read from), under the [mysqld] section:
-- or --
WIth Each client session can change the timezone setting for their own session:
(Or whatever time zone GMT+1 is.: http://www.php.net/manual/en/timezones.php)
This is the command to set the MySQL timezone for an individual client, assuming that your clients are spread accross multiple time zones.