No suitable driver found for jdbc:mysql netbeans, *.jar include in library

天大地大妈咪最大 提交于 2019-12-08 02:32:27

问题


I can perform the connection in worbanch, but with the same username and password can not connect through the application in the mysql database. I checked the syntax apparently seems to be correct. I would like to help to solve this problem as the .jar is already in the library folder of Java SE project.

print screen:

Screen 1

screen 2

ERROR CONSOLE: No suitable driver found for jdbc:mysql://127.0.0.1/sakila


回答1:


Just simply add the library to your project library. Right click in Library on the Project you use

Then choose MySQL JDBC Driver

Then Click Add Library.So now we can connect to MySQL database

Resource :Java MySQL JDBC Tutorial using NetBeans (Part 1)



来源:https://stackoverflow.com/questions/36974534/no-suitable-driver-found-for-jdbcmysql-netbeans-jar-include-in-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!