# Mysql connector jdbc driver not loaded

**URL:** <https://discuss.elastic.co/t/mysql-connector-jdbc-driver-not-loaded/134808>\
**Category:** Logstash\
**Created:** [June 6, 2018, 1:07pm UTC](https://discuss.elastic.co/t/mysql-connector-jdbc-driver-not-loaded/134808 "2018-06-06T13:07:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmongit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmongit/32/31968_2.png) [@dmongit](https://discuss.elastic.co/u/dmongit)\
**Post date:** [June 6, 2018, 1:07pm UTC](https://discuss.elastic.co/t/mysql-connector-jdbc-driver-not-loaded/134808/1 "2018-06-06T13:07:02Z")

</div>

Hi,

I see tons of posts related to this. But, I still have the same issue after running through several of the solutions in these posts.

I used the full path for the jar, and it's not an empty file. I'm running windows 10. For the driver class, I have tried with and without a "Java::" prefix (capital J).

Any ideas?

I have a docker for windows container with logstash and the logstash-input-jdbc plugin:

> FROM [docker.elastic.co/logstash/logstash-oss:6.2.4](http://docker.elastic.co/logstash/logstash-oss:6.2.4)  
> RUN logstash-plugin install logstash-input-jdbc

Here is my logstash.conf:

> input {  
> jdbc {  
> jdbc\_driver\_library =\> "\docker-elk\plugins\mysql-connector-java-5.1.46-bin.jar"  
> jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
> jdbc\_connection\_string =\> "jdbc:mysql://"  
> jdbc\_user =\> ""  
> jdbc\_password =\> ""  
> statement =\> "SELECT \* FROM
> 
> "  
> }  
> }
> 
> output {  
> elasticsearch {  
> hosts =\> "elasticsearch:9200"  
> }  
> }

---

<div class="post-metadata">

**Author:** ![dmongit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmongit/32/31968_2.png) [@dmongit](https://discuss.elastic.co/u/dmongit)\
**Post date:** [June 12, 2018, 12:01am UTC](https://discuss.elastic.co/t/mysql-connector-jdbc-driver-not-loaded/134808/2 "2018-06-12T00:01:33Z")

</div>

My problem was that my docker image wasn't building. I removed all images and built again. Everything was fine.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 10, 2018, 12:01am UTC](https://discuss.elastic.co/t/mysql-connector-jdbc-driver-not-loaded/134808/3 "2018-07-10T00:01:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
