java.sql.SQLException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

jetbrains.com | 5 months ago
  1. 0

    Cannot connect to MySQL database – JetBrains Support

    jetbrains.com | 5 months ago
    java.sql.SQLException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  2. 0

    When adding data sources, database name is forced to lowercase

    YouTrack | 3 years ago
    java.sql.SQLException: Unknown database 'scanner'
  3. 0

    How to connect to Openshift database using PhpStorm?

    Stack Overflow | 4 years ago | nqy
    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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    connecting to a data source phpstorm

    Stack Overflow | 4 years ago | Nicholas Pickering
    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.
  6. 0

    Pycharm: cannot connect to local MySQL database

    Stack Overflow | 3 years ago | Philip007
    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.

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

      Could not create connection to database server. Attempted reconnect 3 times. Giving up.

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      4 frames
    3. MySQL jdbc
      JDBC4Connection.<init>
      1. com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
      2. com.mysql.jdbc.Util.getInstance(Util.java:360)
      3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
      4. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
      5. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
      6. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)
      7. com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2144)
      8. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069)
      9. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790)
      10. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44)
      10 frames
    4. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      4 frames
    5. MySQL jdbc
      NonRegisteringDriver.connect
      1. com.mysql.jdbc.Util.handleNewInstance(Util.java:377)
      2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395)
      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
      RemoteObjectInvocationHandler.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      5. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
      6. sun.rmi.transport.Transport$1.run(Transport.java:200)
      7. sun.rmi.transport.Transport$1.run(Transport.java:197)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      10. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
      11. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
      12. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683)
      13. java.security.AccessController.doPrivileged(Native Method)
      14. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
      15. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      16. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      17. java.lang.Thread.run(Thread.java:745)
      18. sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
      19. sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
      20. sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
      21. java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:217)
      22. java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:171)
      22 frames
    8. com.sun.proxy
      $Proxy152.connect
      1. com.sun.proxy.$Proxy152.connect(Unknown Source)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    10. IDEA
      RemoteUtil$RemoteInvocationHandler.invoke
      1. com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:124)
      2. com.intellij.execution.rmi.RemoteUtil.access$100(RemoteUtil.java:36)
      3. com.intellij.execution.rmi.RemoteUtil$RemoteInvocationHandler.invoke(RemoteUtil.java:229)
      3 frames
    11. com.sun.proxy
      $Proxy153.connect
      1. com.sun.proxy.$Proxy153.connect(Unknown Source)
      1 frame
    12. com.intellij.database
      DataSourceUiUtil$4.run
      1. com.intellij.database.dataSource.LocalDataSource.getConnection(LocalDataSource.java:296)
      2. com.intellij.database.dataSource.LocalDataSource.getConnection(LocalDataSource.java:264)
      3. com.intellij.database.dataSource.AbstractDataSource.performJdbcOperation(AbstractDataSource.java:111)
      4. com.intellij.database.dataSource.AbstractDataSource.refreshMetaData(AbstractDataSource.java:34)
      5. com.intellij.database.dataSource.DataSourceUiUtil$4.run(DataSourceUiUtil.java:218)
      5 frames
    13. IDEA
      ApplicationImpl$8.run
      1. com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
      2. com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:357)
      3. com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
      4. com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
      5. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
      6. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
      7. com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
      8. com.intellij.openapi.application.impl.ApplicationImpl$14$1.run(ApplicationImpl.java:634)
      9. com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
      9 frames
    14. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames
    15. IDEA
      PooledThreadExecutor$1$1.run
      1. org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
      1 frame