Bill
Bill

Reputation: 1

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

I am trying to connect to db4free.net but am getting this error. It was working yesterday. I was able to connect yesterday but today, I can't.

URL:

jdbc:mysql://db4free.net:3306/mydb?autoReconnect=true

Line of code error is at:

connection = DriverManager.getConnection(url, username, password);

JDBC driver is loading correctly so that shouldn't be the error.

Upvotes: 0

Views: 4090

Answers (1)

user5899574
user5899574

Reputation:

That's what you get for free. I would suggest using a different database hosting provider, or check into hosting the database server yourself.

Upvotes: 1

Related Questions