没有为jdbc找到合适的驱动程序:mysql netbeans,* .jar包含在库中 [英] No suitable driver found for jdbc:mysql netbeans, *.jar include in library

查看:267
本文介绍了没有为jdbc找到合适的驱动程序:mysql netbeans,* .jar包含在库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在worbanch中执行连接,但是使用相同的用户名和密码无法通过mysql数据库中的应用程序进行连接。我检查了语法显然似乎是正确的。我想帮助解决这个问题,因为.jar已经在Java SE项目的库文件夹中。



打印屏幕:





然后选择MySQL JDBC Driver





然后点击添加库。现在我们可以连接到MySQL数据库



资源:使用NetBeans的Java MySQL JDBC教程(第1部分)


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

解决方案

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)

这篇关于没有为jdbc找到合适的驱动程序:mysql netbeans,* .jar包含在库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆