# Jdbc driver not loading

**URL:** <https://discuss.elastic.co/t/jdbc-driver-not-loading/134394>\
**Category:** Logstash\
**Created:** [June 4, 2018, 9:25am UTC](https://discuss.elastic.co/t/jdbc-driver-not-loading/134394 "2018-06-04T09:25:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitman](https://avatars.discourse-cdn.com/v4/letter/h/48db29/32.png) [@hitman](https://discuss.elastic.co/u/hitman)\
**Post date:** [June 4, 2018, 9:25am UTC](https://discuss.elastic.co/t/jdbc-driver-not-loading/134394/1 "2018-06-04T09:25:05Z")

</div>

Error: com.mysql.jdbc.Driver not loaded. Are you sure you've included the correct jdbc driver in :jdbc\_driver\_library?

that is the error i get?can anyone comeup with a solution

---

<div class="post-metadata">

**Author:** ![hitman](https://avatars.discourse-cdn.com/v4/letter/h/48db29/32.png) [@hitman](https://discuss.elastic.co/u/hitman)\
**Post date:** [June 4, 2018, 10:00am UTC](https://discuss.elastic.co/t/jdbc-driver-not-loading/134394/2 "2018-06-04T10:00:04Z")

</div>

here is my config file

input {  
jdbc {  
jdbc\_connection\_string =\> "jdbc:mysql://localhost:3306/table"  
# The user we wish to execute our statement as  
jdbc\_user =\> ""  
jdbc\_password =\> ""  
# The path to our downloaded jdbc driver  
jdbc\_driver\_library =\> "C:\Users\kaush\Downloads\mysql-connector-java-8.0.11\mysql-connector-java-8.0.11.jar"  
jdbc\_driver\_class =\> "com.mysql.jdbc.Driver"  
# our query  
statement =\> "SELECT \* FROM test"  
}  
}  
output {  
stdout { codec =\> json\_lines }  
elasticsearch {  
"hosts" =\> "localhost:9200"  
"index" =\> "test-migrate"  
"document\_type" =\> "data"

}  
}

---

<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 2, 2018, 10:00am UTC](https://discuss.elastic.co/t/jdbc-driver-not-loading/134394/3 "2018-07-02T10:00:20Z")

</div>

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