How to change a MySQL database to UTC? How to change a MySQL database to UTC? sql sql

How to change a MySQL database to UTC?


In your my.ini file, under the [mysqld] section, add the following line:

default-time-zone = '+00:00'

Restart the server.You could also set it at runtime from the command line with

mysql> SET GLOBAL time_zone = '+00:00';

The documentation from MySql