abdallah123 Posted January 8, 2012 Share Posted January 8, 2012 (edited) 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 January 8, 2012 by abdallah123 Quote Link to comment Share on other sites More sharing options...
abdallah123 Posted January 8, 2012 Author Share Posted January 8, 2012 (edited) Bonsoir, j'ai change le jdbc, j'ai insere un jdbc pls ancien et j'ai utilise 10.0.2.2 au lieu de 127.0.0.1 et ca a fonctionne alors merci. Edited January 8, 2012 by abdallah123 Quote Link to comment Share on other sites More sharing options...
abdou007 Posted February 22, 2012 Share Posted February 22, 2012 svp peut tu nous envoyer le driver JDBC que t'a utiliser ou bien le lien pour le telecharger Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.