All Apps and Add-ons

DB Connect Error

balcv
Contributor

I am attempting to setup DB Connect to talk to a MySQL database on my Redhat Linux server.
I have installed the MySQL jar file on the Splunk server, MySQL driver is showing as available, firewall rules are taken care of so connectivity is fine, however when I save the New Connection information, I get:

Database Connection [name] is invalid.
CLIENT_PLUGIN_AUTH is required

Running MySQL 5.1.73
Splunk MySQL driver is ver 8.0
mysql-connector-java-8.0.12.jar

Can anyone help me out with the resolution to this one?

Many thanks

Tags (2)
0 Karma
1 Solution

rpille_splunk
Splunk Employee
Splunk Employee

Try using an older .jar file. Go to https://dev.mysql.com/downloads/connector/j/ and click "Looking for previous GA versions?"

According to the DB Connect documentation, the tested version was 5.1. https://docs.splunk.com/Documentation/DBX/3.1.4/DeployDBX/Installdatabasedrivers#Supported_databases

View solution in original post

rpille_splunk
Splunk Employee
Splunk Employee

Try using an older .jar file. Go to https://dev.mysql.com/downloads/connector/j/ and click "Looking for previous GA versions?"

According to the DB Connect documentation, the tested version was 5.1. https://docs.splunk.com/Documentation/DBX/3.1.4/DeployDBX/Installdatabasedrivers#Supported_databases

balcv
Contributor

Thank you, yes it was version related. Once I did a Splunk restart, the "old" jar file was picked up and it all worked as required. Thanks

0 Karma

balcv
Contributor

I have put an older version of the connector (mysql-connector-java-5.1.47.jar) in the /opt/splunk/etc/apps/splunk_app_db_connect/drivers folder but Splunk is still reporting MySQL v 8.0 in the drivers screen of DB Connect even after a Reload.
Do I need to restart splunk to pick up the different driver?

0 Karma

balcv
Contributor

Tried an older version but same result. I suspect the issue may be on my database server side so not sure if there is something I need installed on that side.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...