Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/bigwhoop/mysql-tz-converter

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/bigwhoop/mysql-tz-converter

  • v0.0.0-20121228141020-eba731454053
  • Source
  • Go
  • Socket score

Version published
Created
Source

MySQL Time Zone Converter

This CLI tool converts all fields of all datetime, date and timestamp columns in a MySQL database from one time zone to another.

Installation

go install github.com/bigwhoop/mysql-tz-converter

Instructions

mysql-tz-converter -u user -p pass -h host -P port database from_tz to_tz
mysql-tz-converter -u root -p secret some_db CET UTC
mysql-tz-converter --help 

Appendix

This tool uses MySQL's CONVERT_TZ() function. To use it with named time zones (like UTC) you should make sure that the time zones are properly installed.

  • Windows: http://dev.mysql.com/downloads/timezones.html
  • Linux: mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql

FAQs

Package last updated on 28 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc