博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python&&Java&&jsp+servlet连接数据库报错收藏(sql server,mysql)
阅读量:7029 次
发布时间:2019-06-28

本文共 536 字,大约阅读时间需要 1 分钟。

写在最前面:sql servermysql 是不同的东西。。。

我在完成java连接数据库的时候把这俩当成一个东西,结果下的mysql的jar包。

但自己的sql是server。。

然后尝试用 python的时候 也是下的pymysql,并且一度认为某博主的pymssql是打错了字 = = 。

于是一直连接不上。报了数不尽数的错误:

java.sql.SQLNonTransientConnectionException: Cannot load connection class be...、

tomcat超时、

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

....(还有很多找不到了)

 

转载于:https://www.cnblogs.com/llllrj/p/10936096.html

你可能感兴趣的文章
NSString / NSMutableString 字符串处理
查看>>
3、C语言中一般类型的指针变量细解
查看>>
zookeeper
查看>>
IEnumerable和IEnumerator 详解 (转)
查看>>
web service接口测试工具选型
查看>>
Stage3d 由浅到深理解AGAL的管线vertex shader和fragment shader || 简易教程 学习心得 AGAL 非常非常好的入门文章...
查看>>
vi编辑器的使用方式
查看>>
JOIN与EXISTS(子查询)的效率研究
查看>>
编码规范
查看>>
使用uliweb自动创建表单
查看>>
linux文本文件按列合并
查看>>
[javascript] ajaxfileupload.js 跨域上传文件
查看>>
android raw与assets区别
查看>>
[整] Android Fragment 生命周期图
查看>>
can not connect to MySQL server on "10.30.48.153"(13)
查看>>
Tutorial: Getting Started with SignalR (C#) -摘自网络
查看>>
MSSQL数据库迁移到Oracle(二)
查看>>
S3C2440触摸屏控制总结
查看>>
视频文件格式
查看>>
文件异步上传方式(一)
查看>>