Sample Header Ad - 728x90

is it possible to set specific timezone for session in mariadb connector/j

1 vote
0 answers
284 views
I 'm trying to use timezone setting with mariadb connector/J version 3.x. In the documentation,in Timezone consideration , it says: 'a timezone': connector will set connection variable to value. Compare to Auto, this avoids having some additional exchange with server at connection creation, *This value MUST correspond to java default timezone*. Can we set a specific timezone for a connection as with the previous setting **serverTimeZone** or can we only use system timezone? If it is possible to set it can someone provide an example of a connection string, because I tried it and it doesn't work.
Asked by SkyKnight (11 rep)
Oct 31, 2023, 08:37 PM