JDBC CLASSPATH Not Working

前端 未结 5 1558
遇见更好的自我
遇见更好的自我 2021-01-20 03:51

I\'m setting up a simple JDBC connection to my working MySQL database on my server. I\'m using the Connector-J provided by MySQL. According to their documentation, I\'m supp

5条回答
  •  再見小時候
    2021-01-20 04:10

    Try to do :

    Class.forName("com.mysql.jdbc.Driver"); 
    

    before getting your connection

    You might also want to get a more recent version of the mysql jdbc driver. 5.0.8 is pretty old.

    Take a look at JDBC Basics it will give you some tips.

    This tutorial might help you as well.

提交回复
热议问题