COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: scoebke on 16 Apr 2012 04:32:31 AM

Title: Cognos connect to MySQL database with JDBC
Post by: scoebke on 16 Apr 2012 04:32:31 AM
Hi,

I need to connect FM with MySql. I only see "good" practice with ODBC connection. This is currently working.
But does anyone has already connected with a JDBC connector?

Kind regards
   Scoebke
Title: Re: Cognos connect to MySQL database with JDBC
Post by: MFGF on 16 Apr 2012 07:40:15 AM
I am 99.99999% sure that JDBC connectivity to MySql is not available in Cognos 10. There is no native connectivity as far as I know, so ODBC is your only option.

MF.
Title: Re: Cognos connect to MySQL database with JDBC
Post by: scoebke on 16 Apr 2012 11:11:54 AM
txs for the reply :-)
Title: Re: Cognos connect to MySQL database with JDBC
Post by: thosas on 22 Apr 2015 04:17:37 AM
I know this is an old thread now but it seems to be available as a supported JDBC connection within 10.2.2 - just for the information of those, like me, who were looking for this information.
Title: Re: Cognos connect to MySQL database with JDBC
Post by: Blue on 14 Sep 2016 10:22:07 PM
Yes it is in CBI 10.2.2.  However you need to provide the actual MySQL JDBC driver; it's not provided with CBI, just the option to use it is.

Does anyone know the name of the actual driver .jar file?  I assume once I copy I need to copy it to the vdataserver or the webapps\p2pd\WEB-INF\lib folder.  True?  Which one?

Title: Re: Cognos connect to MySQL database with JDBC
Post by: thosas on 22 Sep 2016 06:31:28 AM
Hey, I added it to my Cognos Analytics box a while back now, on inspecting the folder, I can see I have mysql-connector-java-5.1.37-bin.jar inside there.  Seems to be doing the trick for me at the moment.

Justin
Title: Re: Cognos connect to MySQL database with JDBC
Post by: the6campbells on 03 Oct 2016 10:46:16 PM
Suport for MySQL via DQM/JDBC was introduced in 10.2.1 - refer to http://www-01.ibm.com/support/docview.wss?uid=swg27047186 to see which versions of MySQL are supported.

MySQL JDBC drivers can be downloaded from https://dev.mysql.com/downloads/connector/j/

Prior to Cognos 11, you would drop the JAR files into <cognos>\webapps\p2pd\web-inf\lib

In Cognos 11 drop them into <cognos>\drivers

Title: Re: Cognos connect to MySQL database with JDBC
Post by: Blue on 07 Nov 2016 06:57:43 PM
Thanks guys.

IBM has changed the driver location in CA11.0.4! 

Cheers,

Bob