liquibase.exception.DatabaseException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

GitHub | solvek | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 2298#246317517

    GitHub | 8 months ago | solvek
    liquibase.exception.DatabaseException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  2. 0

    GitHub comment 196#166128587

    GitHub | 1 year ago | Rustypredator
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    jdbc : Could not create connection to database server

    Stack Overflow | 4 months ago | Ali İ.
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  5. 0

    Cant connect ot remote MySQL DataBase from JavaFX application

    Stack Overflow | 3 months ago | Iosif Petrov
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. java.lang.NullPointerException I look a lot in this forum, but I didn't find anything. I create user and give him all privileges in my XAMPP MySQL like that: This is pic from there I configure the router, but i'm not sure is it correct: This is pic from there Can anyone told me, where i go wrong ? Thanks in advance :) And this is the full stacktrace: t com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2088)

  1. pulse00 38 times, last 2 hours ago
  2. osvzs 1 times, last 1 week ago
  3. Casper 1 times, last 1 week ago
  4. Andreas Häber 1 times, last 2 weeks ago
  5. musketyr 8 times, last 2 weeks ago
72 more registered users
23 unregistered visitors
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 refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    6 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:298)
    3. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2253)
    4. com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2106)
    5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2090)
    6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:795)
    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:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)
    3 frames
  6. Liquibase Core
    DatabaseFactory.openDatabase
    1. liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:239)
    2. liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:151)
    3. liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:140)
    3 frames
  7. org.traccar.database
    DataManager.<init>
    1. org.traccar.database.DataManager.initDatabaseSchema(DataManager.java:157)
    2. org.traccar.database.DataManager.<init>(DataManager.java:65)
    2 frames
  8. org.traccar
    Main.main
    1. org.traccar.Context.init(Context.java:121)
    2. org.traccar.Main.main(Main.java:29)
    2 frames
  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:498)
    4 frames
  10. Java Service Wrapper
    WrapperSimpleApp.run
    1. org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:325)
    1 frame
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame