0

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.

River
  • 8,585
  • 14
  • 54
  • 67
Bill
  • 1
  • 1
  • 1
  • Please read: http://stackoverflow.com/questions/15853367/jdbc-vs-web-service-for-android – Morrison Chang Feb 09 '16 at 18:45
  • Also your service `db4free.net` has the following line in their terms & conditions: `data loss and outages can happen at any time (any complaints about that will likely be ignored)` – Morrison Chang Feb 09 '16 at 18:55

1 Answers1

1

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