Mac OS - MySQL Connection in Dataiku
![Gerry Leo](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar17.png)
Hi everyone,
I'm running Version 6.0.4 of the Dataiku DSS on a MacOS, but I'm having difficulties in setting-up MySQL connection in my localhost. I basically followed the instruction found here :
- https://doc.dataiku.com/dss/latest/installation/jdbc.html
- https://doc.dataiku.com/dss/latest/connecting/sql/mysql.html
Each time I tried to connect to my local MySQL instance it threw me the following error:
Failed to load database driver
Failed to load JDBC driver (com.mysql.jdbc.Driver), caused by: ClassNotFoundException: com.mysql.jdbc.Driver
This error is typically caused by an installation issue.
More information on this error in DSS documentation
Additional technical details
- Error code: ERR_SQL_CANNOT_LOAD_DRIVER
- Error type: com.dataiku.dip.exceptions.CodedSQLException
Best Answers
-
Hi,
The keyword "DATA_DIR" in https://doc.dataiku.com/dss/latest/installation/jdbc.html depends on where you installed Dataiku DSS.
In the case of the macOS .dmg installer, that DATA_DIR is
/Users/<your_user_name>/Library/DataScienceStudio/dss_home
Alternatively, you can find the DATA_DIR from our user interface, in Administration > Maintenance > System info.
If you want to understand more about what is the Dataiku DSS data directory (a.k.a. the DATA_DIR) I invite you to give this a read: https://doc.dataiku.com/dss/latest/operations/datadir.html
Hope it helps,
Alex
-
Hi,
You can set that parameter from the Dataiku connection UI, as shown below:
Hope it helps,
Alex
-
Hi,
The error message here is passed from MySQL to the Dataiku interface. This indicates that MySQL does not like this format. The allowed values for this parameter may depend on the version of MySQL you have installed. This page should help: https://dev.mysql.com/doc/refman/8.0/en/time-zone-support.html
Can you try with the value 'UTC' and confirm that it accepts it?
Hope it helps,
Alex
PS: We are 19 Alex's at Dataiku right now. I know... Hence the tagged Alex on the tutorial files is one of my colleagues
-
Gerry Leo Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 45 ✭✭✭✭✭
Hi Alex,
They worked like magic
Thanks for all the help @Alex_Combessie
, really appreciate all the walkthrough. And please stays safe during the pandemic situation.Cheers,
-
Hi,
WIB is indeed not a "time zone" but an "offset to UTC", which may not be valid always. That's a fairly tricky distinction that is mostly due to daylight savings.
For example, Paris is UTC+1 in winter, UTC+2 in summer. The "time zone" called "Europe/Paris" will always be at the correct time of Paris. However the timezone "CET" will only be at the correct time during winter while "CEST" will only be correct during summer. Hence, only "Europe/Paris" is a valid timezone.
In your case, you want to set it to, I guess, "Asia/Jakarta" . While this should ideally be done in MySQL, you should be able to, in the MySQL Connection settings of DSS, add a "Custom JDBC property" with key "serverTimezone" and value "Asia/Jakarta"
Answers
-
Gerry Leo Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 45 ✭✭✭✭✭
Thanks Alex, this would solve my current problem. Though now, it threw me another error, but couldn't figure out how to fix this:
The server time zone value 'WIB' 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., caused by: InvalidConnectionAttributeException: The server time zone value 'WIB' 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.
Where's the timezone configuration panel located? I know this must have been outside of the DSS areas but more on to the mysql insted.
Thanks,
-
Gerry Leo Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 45 ✭✭✭✭✭
-
Instead of using "WIB" timezone, could you try with "+07:00"? (see https://24timezones.com/time-zone/wib#:~:text=WIB%20(Western%20Indonesia%20Time)%20is,used%20as%20the%20standard%20time.)
-
Gerry Leo Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 45 ✭✭✭✭✭
Hi Alex,
Tried a combination of both with or without the quotes, but still no luck.
Btw, by any chance, you're "the" (tagged) Alex on the DSS sample tutorial files?
Cheers,
GLN
-
CoreyS Dataiker Alumni, Dataiku DSS Core Designer, Dataiku DSS Core Concepts, Registered Posts: 1,150 ✭✭✭✭✭✭✭✭✭
Thanks @gerryleonugroho
! -
Gerry Leo Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 45 ✭✭✭✭✭
Thanks Alex, this would solve my current problem. Though now, it threw me another error, but couldn't figure out how to fix this:
The server time zone value 'WIB' 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., caused by: InvalidConnectionAttributeException: The server time zone value 'WIB' 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.
Where's the timezone configuration panel located? I know this must have been outside of the DSS areas but more on to the mysql instead.
Thanks,
-
Gerry Leo Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 45 ✭✭✭✭✭
Hi @Clément_Stenac
would try this later on. Again, I love your products.