# No suitable driver found for jdbc:mariadb

**URL:** <https://discuss.elastic.co/t/no-suitable-driver-found-for-jdbc-mariadb/189525>\
**Category:** Logstash\
**Created:** [July 9, 2019, 10:42am UTC](https://discuss.elastic.co/t/no-suitable-driver-found-for-jdbc-mariadb/189525 "2019-07-09T10:42:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkshara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkshara/32/48222_2.png) [@pkshara](https://discuss.elastic.co/u/pkshara)\
**Post date:** [July 9, 2019, 10:42am UTC](https://discuss.elastic.co/t/no-suitable-driver-found-for-jdbc-mariadb/189525/1 "2019-07-09T10:42:42Z")

</div>

Hi Team,

I am trying to connect to mariaDB as input , but facing error as  
Java::JavaSql::SQLException: No suitable driver found for jdbc:mariadb

below are the input configuration in logstash

input {  
jdbc {  
jdbc\_driver\_library =\> "/etc/logstash/mariadb-java-client-2.4.2-sources.jar"  
jdbc\_driver\_class =\> "org.mariadb.jdbc.Driver"  
jdbc\_connection\_string =\> "jdbc:mariadb://127.0.0.1:3306/blk\_kpi"  
jdbc\_user =\> "root"  
jdbc\_password =\> "root"  
statement =\> "SELECT \* from test WHERE handler\_name in ('contact\_phone')"  
}  
}  
output {  
stdout { codec =\> json\_lines }  
elasticsearch {  
"hosts" =\> "127.0.0.1:9200"  
"index" =\> "test\_extra\_index"  
}  
}

What can be the possible mistake, which is causing the error. I have tried the solutions which were in forum.

TIA

---

<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:** [August 6, 2019, 10:42am UTC](https://discuss.elastic.co/t/no-suitable-driver-found-for-jdbc-mariadb/189525/2 "2019-08-06T10:42:58Z")

</div>

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