• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    jdbc4.CommunicationsException

    Mango Automation general Discussion
    2
    3
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      te36051
      last edited by te36051

      I have some problems. i add sql Datasource and set

      driver class name : com.mysql.jdbc.Driver
      Connection string : jdbc:mysql://localhost:3306/mt4
      *mt4 is database name
      and fill Username and password

      i try to Statement test. mango show masage :

      • class com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

      please Help me?

      1 Reply Last reply Reply Quote 0
      • T
        te36051
        last edited by

        solved
        point: For the solutions that you need to change the MySQL settings, you can refer to the following not:

        Linux: /etc/my.cnf
        Windows: D:\Program Files\mysql\bin\my.ini

        commenting out "skip-networking"
        If there is a "skip-networking" line in your MySQL config file, make it comment by adding "#" sign at the beginning of that line.

        1 Reply Last reply Reply Quote 0
        • phildunlapP
          phildunlap
          last edited by

          Hi te36051,

          Interesting! Thanks for sharing the solution. I wasn't familiar with that mysql option. The same problem may be solvable by modifying the connection string to use whatever pipe that configuration was creating. Some relevant information here: https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-configuration-properties.html

          But, I would think binding the loopback address (127.0.0.1) would be adequate for most situations.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post