Hi all!
I couldn't find the answer through the search, although it seems such a basic question. So hopefully, it's not a double one.
Here we go: When dumping a MySQL table to a .sql file using HeidiSQL, the timestamp columns are converted back to local time. This makes the export impossible to import again due the risk of time shifts because of daylight saving time etc... The default action for a mysqldump is to export all timestamps in UTC format and add following controls to the dump:
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
--> export data here <--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
This way the export/import is consistent and works just fine.
Unfortunately, I can't find this option in HeidiSQL. Where can I find it? If it's not in there, please let this be a feature request ;-)
Thanks!