# Jdbc mysql input plugin, Communication link failure

**URL:** <https://discuss.elastic.co/t/jdbc-mysql-input-plugin-communication-link-failure/78047>\
**Category:** Logstash\
**Created:** [March 9, 2017, 7:59pm UTC](https://discuss.elastic.co/t/jdbc-mysql-input-plugin-communication-link-failure/78047 "2017-03-09T19:59:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gusDuarte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gusduarte/32/92601_2.png) [@gusDuarte](https://discuss.elastic.co/u/gusDuarte)\
**Post date:** [March 9, 2017, 7:59pm UTC](https://discuss.elastic.co/t/jdbc-mysql-input-plugin-communication-link-failure/78047/1 "2017-03-09T19:59:34Z")

</div>

Hi, we are facing a problem with JDBC INPUT plugin connection to DB.

When Logstash service start, the following error is logged:

[2017-03-09T16:44:15,061][ERROR][logstash.pipeline] Error registering plugin {:plugin=\>"\<LogStash::Inputs::Jdbc jdbc\_connection\_string=\>"jdbc:mysql://172.26.254.114:3306/notificaciones?zeroDateTimeBehavior=convertToNull", jdbc\_user=\>"dispositivos", jdbc\_password=\>, jdbc\_driver\_library=\>"/usr/share/java/mysql-connector-java.jar", jdbc\_driver\_class=\>"com.mysql.jdbc.Driver", jdbc\_validate\_connection=\>true, jdbc\_validation\_timeout=\>120, jdbc\_pool\_timeout=\>60, jdbc\_paging\_enabled=\>true, jdbc\_page\_size=\>50000, schedule=\>"\*/5 \* \* \* \*", statement=\>"SELECT \* from webservice where webservice\_lastlogin \> :sql\_last\_value", last\_run\_metadata\_path=\>"/var/lib/logstash/.logstash\_jdbc\_last\_run", type=\>"mysql-notificaciones", id=\>"f10d0c3e9b16f8f90766179ac190d8acdd115182-2", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_ea591014-0ea6-4b76-8431-fc8fa758675f", enable\_metric=\>true, charset=\>"UTF-8"\>, sql\_log\_level=\>"info", connection\_retry\_attempts=\>1, connection\_retry\_attempts\_wait\_time=\>0.5, use\_column\_value=\>false, tracking\_column\_type=\>"numeric", clean\_run=\>false, record\_last\_run=\>true, lowercase\_column\_names=\>true\>", :error=\>"Java::ComMysqlJdbcExceptionsJdbc4::CommunicationsException: Communications link failure\n\nThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server."}

MySQL connection from command line is working fine, using same parameters, like:

mysql -u dispositivos -p -h 172.26.254.114 -p 3306 notificaciones

So I thinking that there is a problem with the JDB Driver or something rleated.

I tried it jdbc-mysql-connector 5.1.40 and 5.1.41

Any help is appreciated.

Thanks

---

<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:** [April 6, 2017, 7:59pm UTC](https://discuss.elastic.co/t/jdbc-mysql-input-plugin-communication-link-failure/78047/2 "2017-04-06T19:59:37Z")

</div>

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