0

I am a new bie on android and java platform. I am using eclipse IDE, Android SDK 2.2, JDK 6.0.2, mysql 6.54 and mySQL-Connector-java-5.1.7.bin.jar. When I am trying to connect to DB then I am getting error "com.mysql.jdbc.CommunicationException: Communications link failure". Can you please guide me in this context. I would appreciate if any one can tell me the steps to connect. OR if I am using some wrong JDK or Connector in order to connect to mySql.

Thanks in advance.

-Krishna

krishna
  • 21
  • 1
  • 5
  • You should probably update the title of your question to indicate that this is a database oriented problem and not just an Android problem. In fact, it looks like it is not related to Android or Eclipse in any particular way. – ThomasW Jan 27 '11 at 14:22

1 Answers1

1

AFAIK Android does not implement JDBC, so your mySQL JDBC driver will most likely not work. If you want your app to communicate with a remote database, you'll need to provide some sort of web service for your app to communicate with instead.

See this question for more about Android + JDBC.

Community
  • 1
  • 1
Erich Douglass
  • 51,744
  • 11
  • 75
  • 60
  • I insstalled sqlite3 in command prompt while creating database it will not creating and i added that path in environment variable so please can you help me how to create databasse. Thanks in advance. – krishna Jan 28 '11 at 10:03
  • Can i create WebService for Android Application using Eclipse, Please let me know the steps.Thanks in advance – krishna Feb 04 '11 at 06:38