`
bjtdeyx
  • 浏览: 171698 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

no suitable driver found for jdbc:mysql//localhost:3306/..

阅读更多
出现这样的情况,一般有四种原因:

一:连接URL格式出现了问题(Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/XX","root","XXXX")

二:驱动字符串出错(com.mysql.jdbc.Driver)
   
三:Classpath中没有加入合适的mysql_jdbc驱动(驱动要和你的数据库版本一致)

四:驱动jar包放的位置不对
 
我遇到的问题是第四类,myeclipse里,运行项目始终报此错!
最后把驱动包mysql-connector-java-5.0.5-bin.jar放到jdk/jre/lib/ext里面,得以解决问题!
 

附上100%完整的系统项目源码:

JSP图书馆管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a97e.html

 

JSP酒店宾馆管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a97m.html

 

JSP学生信息管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a97r.html

 

 

JSP房屋出售租赁管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a98c.html

 

J2EE酒店在线预订系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a97v.html

 

SSH/J2EE人力资源管理系统:http://blog.sina.com.cn/s/blog_4b5bc01101019ztu.html

 

ssh2图书管理系统(图书馆管理系统): http://blog.sina.com.cn/s/blog_4b5bc0110101adf0.html

 

毕业设计-JSP图书馆管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a979.html

 

毕业设计-JSP酒店宾馆管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a97z.html

 

毕业设计-JSP学生信息管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a987.html

 

毕业设计-JSP房屋出售租赁管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101a98a.html

 

毕业设计-s2sh/j2ee图书管理系统 :http://blog.sina.com.cn/s/blog_4b5bc0110101ain5.html

 

ssh2图书管理系统(图书馆管理系统):http://blog.sina.com.cn/s/blog_4b5bc0110101adf0.html

 

毕业设计-jsp信息发布系统(信息供求网站系统):http://blog.sina.com.cn/s/blog_4b5bc0110101aiou.html

 

struts2+servlet+jsp信息发布系统:http://blog.sina.com.cn/s/blog_4b5bc0110101aiop.html

 

毕业设计-jsp电子商城 网上商城系统:http://blog.sina.com.cn/s/blog_4b5bc0110101aiof.html

 

jsp电子商城 网上商城系统(struts+servlet+jsp):http://blog.sina.com.cn/s/blog_4b5bc0110101aio9.html

 

毕业设计-图书管理系统 jsp图书馆系统Struts2+Spring+Ibatis+extjs(ssi):

http://blog.sina.com.cn/s/blog_4b5bc0110101ainu.html

 

Struts2+Spring+Ibatis+extjs(ssi)图书管理系统 jsp图书馆系统:

http://blog.sina.com.cn/s/blog_4b5bc0110101ainh.html

 

ssh2图书管理系统(图书馆管理系统):http://blog.sina.com.cn/s/blog_4b5bc0110101adf0.html

 

毕业设计-s2sh/j2ee图书管理系统 struts2+spring+hibernate:

http://blog.sina.com.cn/s/blog_4b5bc0110101ain5.html

 

 jsp酒店在线预订系统 酒店客房预定系统:http://blog.sina.com.cn/s/blog_4b5bc0110101atb8.html

 

毕业设计 jsp酒店在线预订系统 酒店客房预定系统:http://blog.sina.com.cn/s/blog_4b5bc0110101atbb.html

 

人力资源管理系统 S2SH/J2EE/JAVA:http://blog.sina.com.cn/s/blog_4b5bc0110101azoz.html

 

毕业设计-人力资源管理系统 S2SH/J2EE/JSP:http://blog.sina.com.cn/s/blog_4b5bc0110101azp0.html

 

ssh网上商城 电子商城struts hibernate  :http://blog.sina.com.cn/s/blog_4b5bc0110101b5gr.html

 

毕业设计 ssh网上商城 电子商城struts hibernate:http://blog.sina.com.cn/s/blog_4b5bc0110101b5h2.html

 

毕业设计 ssh电子相册管理系统:http://blog.sina.com.cn/s/blog_4b5bc0110101bkbl.html

 

实用技术:

J2EE/JSP应用技术70实例(源码)(实用): http://blog.sina.com.cn/s/blog_4b5bc0110101acms.html

分享到:
评论

相关推荐

    服务器出现java.sql.SQLException No suitable driver found for 的.pdf

    ### 服务器出现java.sql.SQLException No suitable driver found for 的解析与解决方案 #### 问题背景 在进行Servlet开发过程中,尤其是在尝试连接数据库时,遇到了一个常见的异常:“java.sql.SQLException: No ...

    kingbaseV8 jdbc 驱动

    Class.forName("com.kingbase.jdbc.Driver"); Connection conn = DriverManager.getConnection(url, username, password); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e)...

    ImpalaJDBC连接所需Jar

    Impala JDBC连接所需Jar文件是用于Java应用程序与Impala数据仓库进行交互的重要组件。Impala是Cloudera公司开发的一款高性能、低延迟的SQL查询引擎,适用于大数据分析。JDBC(Java Database Connectivity)是Java...

    mysql5.6连接驱动jaf,可处理报错java.sql.SQLException: No suitable driver

    "jdbc:mysql://localhost:3306/your_database", "username", "password"); ``` 这里的`your_database`是你的数据库名,`username`和`password`分别是数据库的用户名和密码。 5. **检查URL和版本**:确认`jdbc:...

    kingbaseV8 jdbc 驱动 kingbase8-8.2.0.jar

    Java版本 人大金仓ESV8最新版驱动程序,学习使用国产化数据库操作。 金仓通用数据库,可视化操作,毫秒级数据处理,高效准确完成数据处理全过程。面向事务处理类、兼顾分析类应用领域场景,兼容Oracle、国产数据库等多...

    derbyclient.jar

    "No suitable driver found for jdbc:derby://localhost:1527/Employees" 解决上面问题,连接java和数据库会用到的包。

    mysql连接jar包.rar

    这可能表现为异常如`No suitable driver found for jdbc:mysql://...`或者版本不兼容的错误提示。 要解决这个问题,你需要确保项目中引用的MySQL Connector/J jar包与运行的MySQL服务器版本相匹配。在这个情况下,...

    HLS-WWWDC-2017

    - **Fragmented MPEG-4**: Suitable for streaming content over HTTP, this format divides media into small fragments for efficient transmission. - **Packed Audio**: A format specifically designed for ...

    Oracle SQL Developer 2.1.0.63.73 for 32bit-windows-no-jre.part1

    Third-party database drivers for Sybase, SQL Server and MySQL. For more information on setting up the third-party drivers, see Migrations: Getting Started Version control systems, Concurrent Versions...

    jsp 连接sql server 2021 连接不上的解决方法.docx

    2. **No suitable driver found**: 如果遇到“javax.servlet.ServletException: java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver://localhost:1034;DatabaseName=test2”的错误,这...

    三菱伺服电机选型软件Motorizer(中文):sw1dnn-mz-m_005f.zip.001

    Drive System Sizing Software Motorizer is software that enables you to select the most suitable servo motors for your machine just by setting the machine configuration/specifications and the operation...

    Java使用JDBC连接postgresql数据库示例

    Java 使用 JDBC 连接 PostgreSQL 数据库示例 Java 是一种广泛使用的编程语言,而 PostgreSQL 是一个功能强大且广泛使用的关系数据库管理系统。Java 使用 JDBC(Java Database Connectivity)连接 PostgreSQL 数据库...

    STM32 motor control SDK.pdf

    high performance with first-class peripherals that make them suitable for performing three-phase motor FOC. The PMSM FOC library can be used to quickly evaluate ST microcontrollers, to complete ST ...

    三菱伺服电机选型软件Motorizer(中文):sw1dnn-mz-m_005f.zip.002

    Drive System Sizing Software Motorizer is software that enables you to select the most suitable servo motors for your machine just by setting the machine configuration/specifications and the operation...

    Android代码-NHBooks

    WARNING: This application contains sexually explicit content that is not suitable for minors. You can download release version from here: https://github.com/fython/NHentai-android/releases Suspension ...

    JNDI数据源配置[文].pdf

    2. **`java.sql.SQLException: No suitable driver`** - 解决方法:确认MySQL驱动程序已添加至Tomcat的`lib`目录以及Web应用的`WEB-INF/lib`目录。 3. **`Name jdbc is not bound in this context`** - 解决方法...

    DWGdirectX2.7.3

    It is suitable for small utility applications, rendering systems, file conversion, and many other tasks. Built on top of the DWGdirect C++ development environment, DWGdirectX puts stable, powerful, ...

    Tomcat中配置数据源JNDI

    - **异常2**: `Caused by: java.sql.SQLException: No suitable driver` - 表明没有找到合适的JDBC驱动。请确认驱动是否已添加至Tomcat的`lib`目录,并确保`driverClassName`属性指向正确的类名。 - **异常3**: `...

    UK551-USB2ISP.zip

    Programming is made easy using an API-DLL,suitable for almost any programming language (Delphi,CBC,C,VB,LABVIEW...). RSC:https://share.weiyun.com/5rT0PZs Tech:https://github.com/usb-i2c-spi Mail: ...

    lwip源码(小型TCP/IP协议栈)

    This making lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM. lwIP was originally developed by Adam Dunkels at the Computer ...

Global site tag (gtag.js) - Google Analytics