java.sql.SQLException: 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.

tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rp . Or join the community to write better ones.
  1. 0

    Exception when trying to connect to remove MySQL from Intellij IDEA

    Database Administrators | 2 years ago | Vitaly Zdanevich
    java.sql.SQLException: 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.
  2. 0

    Error related to Local Database

    GitHub | 10 months ago | MrMurfy
    me.confuser.banmanager.internal.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Could not create connection to database server. Attempted reconnect 10 times. Giving up.
  3. 0
    samebug tip
    host port isnt set
    via GitHub by rawlingsj
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if your MongoDB is available.
  6. 0
    samebug tip
    start Appium server
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection timed out

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:579)
    6 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:213)
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:297)
    3. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2237)
    4. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2270)
    5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)
    6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    7. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
    7 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:389)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)
    3 frames
  6. com.intellij.database
    RemoteDriverImpl.connect
    1. com.intellij.database.remote.jdbc.impl.RemoteDriverImpl.connect(RemoteDriverImpl.java:27)
    1 frame
  7. Java RT
    Thread.run
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    5. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    6. sun.rmi.transport.Transport$2.run(Transport.java:202)
    7. sun.rmi.transport.Transport$2.run(Transport.java:199)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. sun.rmi.transport.Transport.serviceCall(Transport.java:198)
    10. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:567)
    11. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
    12. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.access$400(TCPTransport.java:619)
    13. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:684)
    14. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$1.run(TCPTransport.java:681)
    15. java.security.AccessController.doPrivileged(Native Method)
    16. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:681)
    17. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    18. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    19. java.lang.Thread.run(Thread.java:745)
    19 frames