Reputation: 1
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
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