*- put .jar file to /opt/splunk/etc/apps/splunk_app_db_connect/bin/lib/ directory.
and not in /opt/splunk/etc/apps/splunk_app_db_connect/bin/ directory.
*- don't use .jar file of windows on Linux, ...
Download the MySQL Connector/J driver, version 5.1.24 or later
(mysql-connector-java-*-bin.jar).
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
$SPLUNK_HOME/etc/apps/splunk_app_db_connect/bin/lib
directory.
... View more