Jump to content

Android et mysql jdbc


abdallah123

Recommended Posts

Bonjour,

je veux me connecter a mysql via android j'ai utilise:

String driver="com.mysql.jdbc.Driver";

String url="jdbc:mysql://localhost/projetandroidbdd";

String user="root";

String pass="";

Class.forName(driver);

Connection con=DriverManager.getConnection(url,user,pass);

mais je recoit could not find class 'javax.naming.StringRefAddr'

je crois que c'est a cause du string utilise pour acceder a la base de donnee mais je n'arrive pas a le fixer, et j'ai besoin d'aide merci.

Edited by abdallah123
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...