Skip to main content

Command Palette

Search for a command to run...

Adding Custom JDBC Options to your cfconfig datasource

Updated
1 min read

I was getting a weird timezone error when connecting to a MySQL 8 database.

The server time zone value 'EDT' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

I was able to get around this by adding a custom jdbc option to my datasource:

cfconfig datasource save name=test dbdriver=mysql host=localhost port=3306 database=testdb username=randy password=test custom="serverTimezone=America/New_York"

More from this blog

Untitled Publication

29 posts