{"action":"created","issue":{"url":"https://api.github.com/repos/schemaspy/schemaspy/issues/362","repository_url":"https://api.github.com/repos/schemaspy/schemaspy","labels_url":"https://api.github.com/repos/schemaspy/schemaspy/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/schemaspy/schemaspy/issues/362/comments","events_url":"https://api.github.com/repos/schemaspy/schemaspy/issues/362/events","html_url":"https://github.com/schemaspy/schemaspy/issues/362","id":333232193,"node_id":"MDU6SXNzdWUzMzMyMzIxOTM=","number":362,"title":"Timezone errors","user":{"login":"pgorod","id":15945027,"node_id":"MDQ6VXNlcjE1OTQ1MDI3","avatar_url":"https://avatars0.githubusercontent.com/u/15945027?v=4","gravatar_id":"","url":"https://api.github.com/users/pgorod","html_url":"https://github.com/pgorod","followers_url":"https://api.github.com/users/pgorod/followers","following_url":"https://api.github.com/users/pgorod/following{/other_user}","gists_url":"https://api.github.com/users/pgorod/gists{/gist_id}","starred_url":"https://api.github.com/users/pgorod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgorod/subscriptions","organizations_url":"https://api.github.com/users/pgorod/orgs","repos_url":"https://api.github.com/users/pgorod/repos","events_url":"https://api.github.com/users/pgorod/events{/privacy}","received_events_url":"https://api.github.com/users/pgorod/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-18T11:32:36Z","updated_at":"2018-06-18T12:42:18Z","closed_at":"2018-06-18T12:42:18Z","author_association":"NONE","body":"## Current Behavior\r\nThis is my initial set up. I installed java and graphviz on my Ubuntu Server 16.04.\r\n\r\nI'm sorry this is probably a stupid mistake from me, but I have spent the past 30m Googling for solutions but I am at that point where I am too ignorant (about Java) to Google wisely :-)\r\n\r\nI created a `schemaspy.properties` file with these contents:\r\n```\r\n# type of database. Run with -dbhelp for details\r\nschemaspy.t=mysql\r\n# optional path to alternative jdbc drivers.\r\nschemaspy.dp= ./mysql-connector-java-8.0.11.jar\r\n# database properties: host, port number, name user, password\r\nschemaspy.host=localhost\r\nschemaspy.port=3306\r\nschemaspy.db=forums\r\nschemaspy.u=root\r\nschemaspy.p=******\r\n# output dir to save generated files\r\nschemaspy.o=.\r\n# db scheme for which generate diagrams\r\nschemaspy.s=dbo\r\n```\r\n\r\nI try running schemaspy for the first time and I get these errors:\r\n\r\n```\r\nroot@SuiteCRM ~/SchemaSpy $ java -jar schemaspy-6.0.0-rc2.jar\r\n  ____       _                          ____\r\n / ___|  ___| |__   ___ _ __ ___   __ _/ ___| _ __  _   _\r\n \\___ \\ / __| '_ \\ / _ \\ '_ ` _ \\ / _` \\___ \\| '_ \\| | | |\r\n  ___) | (__| | | |  __/ | | | | | (_| |___) | |_) | |_| |\r\n |____/ \\___|_| |_|\\___|_| |_| |_|\\__,_|____/| .__/ \\__, |\r\n                                             |_|    |___/\r\n\r\n                                              6.0.0-rc2\r\n\r\nSchemaSpy generates an HTML representation of a database schema's relationships.\r\n\r\nINFO  - Starting Main v6.0.0-rc2 on SuiteCRM with PID 11942 (/root/SchemaSpy/schemaspy-6.0.0-rc2.jar started by root in /root/SchemaSpy)\r\nINFO  - No active profile set, falling back to default profiles: default\r\nINFO  - Found configuration file: schemaspy.properties\r\nINFO  - Starting schema analysis\r\nINFO  - Using database properties:\r\nINFO  -   [schemaspy-6.0.0-rc2.jar]/org/schemaspy/types/mysql.properties\r\nLoading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.\r\nMon Jun 18 12:15:45 WEST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.\r\n\r\nFailed to connect to database URL [jdbc:mysql://localhost:3306/forums]\r\n\r\njava.sql.SQLException: The server time zone value 'WEST' 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.\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:127)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:87)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:61)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:71)\r\n        at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:76)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:862)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:444)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:230)\r\n        at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:226)\r\n        at org.schemaspy.DbDriverLoader.getConnection(DbDriverLoader.java:69)\r\n        at org.schemaspy.service.SqlService.connect(SqlService.java:65)\r\n        at org.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:181)\r\n        at org.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:88)\r\n        at org.schemaspy.Main.runAnalyzer(Main.java:79)\r\n        at org.schemaspy.Main.run(Main.java:72)\r\n        at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:732)\r\n        at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:716)\r\n        at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:703)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:304)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)\r\n        at org.schemaspy.Main.main(Main.java:55)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:498)\r\n        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)\r\n        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)\r\n        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)\r\n        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)\r\nCaused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'WEST' 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.\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n        at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:59)\r\n        at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:83)\r\n        at com.mysql.cj.util.TimeUtil.getCanonicalTimezone(TimeUtil.java:128)\r\n        at com.mysql.cj.protocol.a.NativeProtocol.configureTimezone(NativeProtocol.java:2201)\r\n        at com.mysql.cj.protocol.a.NativeProtocol.initServerSession(NativeProtocol.java:2225)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:1391)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:993)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:852)\r\n        ... 24 more\r\nWARN  - Connection Failure\r\norg.schemaspy.model.ConnectionFailure: java.sql.SQLException: The server time zone value 'WEST' 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.\r\n        at org.schemaspy.DbDriverLoader.getConnection(DbDriverLoader.java:95)\r\n        at org.schemaspy.service.SqlService.connect(SqlService.java:65)\r\n        at org.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:181)\r\n        at org.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:88)\r\n        at org.schemaspy.Main.runAnalyzer(Main.java:79)\r\n        at org.schemaspy.Main.run(Main.java:72)\r\n        at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:732)\r\n        at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:716)\r\n        at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:703)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:304)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)\r\n        at org.schemaspy.Main.main(Main.java:55)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:498)\r\n        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)\r\n        at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)\r\n        at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)\r\n        at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)\r\nCaused by: java.sql.SQLException: The server time zone value 'WEST' 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.\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:127)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:87)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:61)\r\n        at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:71)\r\n        at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:76)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:862)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:444)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:230)\r\n        at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:226)\r\n        at org.schemaspy.DbDriverLoader.getConnection(DbDriverLoader.java:69)\r\n        ... 20 common frames omitted\r\nCaused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'WEST' 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.\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n        at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:59)\r\n        at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:83)\r\n        at com.mysql.cj.util.TimeUtil.getCanonicalTimezone(TimeUtil.java:128)\r\n        at com.mysql.cj.protocol.a.NativeProtocol.configureTimezone(NativeProtocol.java:2201)\r\n        at com.mysql.cj.protocol.a.NativeProtocol.initServerSession(NativeProtocol.java:2225)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:1391)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:993)\r\n        at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:852)\r\n        ... 24 common frames omitted\r\nINFO  - Started Main in 3.472 seconds (JVM running for 4.407)\r\n\r\n```\r\n\r\n## Your Environment\r\n* Version used: 6.0.0. RC2\r\n* Operating System and version: Ubuntu Server 16.04 64-bit\r\n* Java version: openjdk version \"1.8.0_171\"\r\n\r\nSo, how can I set the timezone for SchemaSpy? Thanks in advance!\r\n"},"comment":{"url":"https://api.github.com/repos/schemaspy/schemaspy/issues/comments/398041038","html_url":"https://github.com/schemaspy/schemaspy/issues/362#issuecomment-398041038","issue_url":"https://api.github.com/repos/schemaspy/schemaspy/issues/362","id":398041038,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODA0MTAzOA==","user":{"login":"pgorod","id":15945027,"node_id":"MDQ6VXNlcjE1OTQ1MDI3","avatar_url":"https://avatars0.githubusercontent.com/u/15945027?v=4","gravatar_id":"","url":"https://api.github.com/users/pgorod","html_url":"https://github.com/pgorod","followers_url":"https://api.github.com/users/pgorod/followers","following_url":"https://api.github.com/users/pgorod/following{/other_user}","gists_url":"https://api.github.com/users/pgorod/gists{/gist_id}","starred_url":"https://api.github.com/users/pgorod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgorod/subscriptions","organizations_url":"https://api.github.com/users/pgorod/orgs","repos_url":"https://api.github.com/users/pgorod/repos","events_url":"https://api.github.com/users/pgorod/events{/privacy}","received_events_url":"https://api.github.com/users/pgorod/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T12:42:18Z","updated_at":"2018-06-18T12:42:18Z","author_association":"NONE","body":"Cool, that worked!\r\n\r\nWell, it worked with UTC. To get it to use `Europe/Lisbon` which is my correct timezone, I had to add another escape slash... but only one, not two like for the `=` sign...\r\n\r\nSo this worked: `-connprops serverTimezone\\\\=Europe\\/Lisbon`\r\n\r\nThanks for your help. I'm off to contemplate my beautiful database Schema. :-)"}}
{"actor":{"display_login":"pgorod"}}