<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk DB Connect 2: Why am I unable to load the MS SQL driver? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216947#M23530</link>
    <description>&lt;P&gt;Initial question was referred to Microsoft SqlServer db connectivity issue. But, in the accepted answer I see the references to "MySQL".&lt;BR /&gt;
Is this solution work?&lt;/P&gt;

&lt;P&gt;I am not sure which option to be used to connect SQLServer database from Splunk DB Connect app as I see there are 5 different options from the dropdown.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2016 19:43:34 GMT</pubDate>
    <dc:creator>phaninadendla</dc:creator>
    <dc:date>2016-12-06T19:43:34Z</dc:date>
    <item>
      <title>Splunk DB Connect 2: Why am I unable to load the MS SQL driver?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216944#M23527</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to set up a connection in the Splunk DB Connect 2 app, but it doesn't find the driver:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;failed: java.sql.SQLException:,Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I installed JAVA:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The DB-Connect app find JAVA after I enter the JAVA_HOME variable.&lt;/P&gt;

&lt;P&gt;I copied the sqljdbc4.jar file from microsoft to /opt/splunk/etc/apps/splunk_app_db_connect/bin/&lt;/P&gt;

&lt;P&gt;After restarting Splunk, it still doesn't find the driver.&lt;/P&gt;

&lt;P&gt;Any ideas ?&lt;/P&gt;

&lt;P&gt;PS: I tried to set up the CLASSPATH var as this post described : &lt;A href="https://answers.splunk.com/answers/235666/splunk-db-connect-2-the-driver-class-commysqljdbcd.html" target="_blank"&gt;https://answers.splunk.com/answers/235666/splunk-db-connect-2-the-driver-class-commysqljdbcd.html&lt;/A&gt; but it doesn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216944#M23527</guid>
      <dc:creator>ctaf</dc:creator>
      <dc:date>2020-09-29T08:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: Why am I unable to load the MS SQL driver?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216945#M23528</link>
      <description>&lt;P&gt;*- put .jar file to  /opt/splunk/etc/apps/splunk_app_db_connect/bin/lib/  directory.&lt;BR /&gt;
  and not in /opt/splunk/etc/apps/splunk_app_db_connect/bin/ directory.&lt;BR /&gt;
*- don't use .jar file of windows on Linux, ...&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Download the MySQL Connector/J driver, version 5.1.24 or later
(mysql-connector-java-*-bin.jar).&lt;/LI&gt;
&lt;LI&gt;For Unix, Linux, and OS X, select the Platform Independent driver
option, as follows:
a. Download and uncompress either ZIP or TAR archive files. The
uncompressed archive contains the JDBC driver (.jar).
b. Copy the mysql-connector-java-version-bin.jar file to the
&lt;STRONG&gt;$SPLUNK_HOME/etc/apps/splunk_app_db_connect/bin/lib&lt;/STRONG&gt;
directory.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:20:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216945#M23528</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2020-09-29T08:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: Why am I unable to load the MS SQL driver?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216946#M23529</link>
      <description>&lt;P&gt;Ohhhh you were right, I put in in /bin and not in /bin/lib.. Silly me. Thanks !&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 14:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216946#M23529</guid>
      <dc:creator>ctaf</dc:creator>
      <dc:date>2016-01-07T14:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: Why am I unable to load the MS SQL driver?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216947#M23530</link>
      <description>&lt;P&gt;Initial question was referred to Microsoft SqlServer db connectivity issue. But, in the accepted answer I see the references to "MySQL".&lt;BR /&gt;
Is this solution work?&lt;/P&gt;

&lt;P&gt;I am not sure which option to be used to connect SQLServer database from Splunk DB Connect app as I see there are 5 different options from the dropdown.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 19:43:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216947#M23530</guid>
      <dc:creator>phaninadendla</dc:creator>
      <dc:date>2016-12-06T19:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: Why am I unable to load the MS SQL driver?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216948#M23531</link>
      <description>&lt;P&gt;I downvoted this post because he was talking about mssql, not mysql.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 06:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-Why-am-I-unable-to-load-the-MS-SQL-driver/m-p/216948#M23531</guid>
      <dc:creator>psobisch</dc:creator>
      <dc:date>2017-06-14T06:43:50Z</dc:date>
    </item>
  </channel>
</rss>

