logstash-plugins / logstash-input-jdbc

Logstash Plugin for JDBC Inputs
Apache License 2.0
449 stars 187 forks source link

com.mysql.jdbc.Driver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library? #364

Closed jaycGong closed 4 years ago

jaycGong commented 4 years ago

Please post all product and debugging questions on our forum. Your questions will reach our wider community members there, and if we confirm that there is a bug, then we can open a new issue here.

For all general issues, please provide the following details for fast resolution: if you have de problem like this: com.mysql.jdbc.Driver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library? you will make sure your driver jar come from maven or other correct place download, then you should move the jdbc.driver .jar to the place put all jar,for example: logstash-7.4.2\logstash-core\lib\jars\

liangxiong3403 commented 4 years ago

1.put jdbc.jar into LOGSTASH_HOME/logstash-core/lib/jars/your-mysql.jar; 2.comment logstash.conf's jdbc_driver_library property

robbavey commented 4 years ago

@jaycGong Driver loading issues should be fixed using the latest (4.3.19) version of this plugin, and ensuring that the :jdbc_driver_library property is set correctly with the full path to the required jar files.