错误连接数据库 [kettletest1] : Error connecting to database: (using class org.gjt.mm.mysql.Driver)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误连接数据库 [kettletest1] : Error connecting to database: (using class org.gjt.mm.mysql.Driver)相关的知识,希望对你有一定的参考价值。

错误连接数据库 [kettletest1] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database

Error connecting to database: (using class org.gjt.mm.mysql.Driver)
Communications link failure

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

org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database

Error connecting to database: (using class org.gjt.mm.mysql.Driver)
Communications link failure

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

at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:540)
at org.pentaho.di.core.database.Database.normalConnect(Database.java:399)
... 54 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

主机名 : MySQL
端口 : 3306
数据库名:kettletest1
之前是报JAR出错,现在JAR包有了,为mysql-connector-java-5.1.17-bin.jar,Kettle版本为4.5.1,求大神解决。

参考技术A A Database Error Occurred 一个数据库错误发生Unable to connect to your database server using the provided settings.不能用提供的设置连接到你的数据库服务器Filename: core/Loader.php文件名 core/Loader.phpLine Number: 260线路: 260 参考技术B 我的也是这种问题,我找了半天发现是360杀毒软件把Spoon.bat当做木马给隔离了,把它添加到信任软件里面重新启动就好了。不过不知道你的原因是不是一样。 参考技术C jar add to path了没有
mysql 服务启动了没有追问

jar包加入了,服务肯定是启动了的。叨咕一阵之后,最后问题解决了。

追答

能否把你这个问题最终的解决 办法 贴上来,很多朋友 都想知道?
另外,不管在哪里提问题,如果最终问题解决了,最好都能把解决的 办法 贴出来。
人人为我,我为人人!

错误脚本(查找数据库连接中的所有错误)

  1. SELECT e.name, e.type, e.sequence, e.line, e.position, e.text, s.text FROM user_errors e
  2. JOIN user_source s
  3. ON e.name = s.name
  4. AND e.type = s.type
  5. AND e.line = s.line
  6. ORDER BY e.name, e.type, e.sequence;

以上是关于错误连接数据库 [kettletest1] : Error connecting to database: (using class org.gjt.mm.mysql.Driver)的主要内容,如果未能解决你的问题,请参考以下文章

错误:E/RecyclerView:未连接适配器;跳过片段上的布局

错误消息:E/RecyclerView:未连接适配器;跳过布局

错误 ANDROID STUDIO E/RecyclerView:未连接适配器;跳过布局

错误报告

连接节点错误 kAudioUnitErr_PropertyNotWriteable 时 AudioToolbox AUGraph 失败

与服务器成功建立连接,但在登录前握手期间发生错误