-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Docker (recommended),Error occurred while trying to connect to the database #244
Comments
me too |
The Mysql driver is not included in the image, you have to add it as described in the readme https://github.com/HiromuHota/pentaho-kettle/blob/webspoon-9.0/README.md |
I try。 add the mysql.jar into the $CATALINA_HOME/lib of image , but it do not work。 |
Hi, so the more recent versions of the mysql drivers no longer have the org.gjt.mm.mysql.Driver they changed it to com.mysql.cj.jdbc.Driver. so you either have to create a generic connection using the com.mysql.cj.jdbc.Driver class, or you need to download an older driver |
i try version of .jar : 5.1.47-bin , 5.1.48-bin and 5.1.49-bin there is a new problem : Error connecting to database [localdb] :org.pentaho.di.core.exception.KettleDatabaseException: Error connecting to database: (using class org.gjt.mm.mysql.Driver) 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 connecting to database: (using class org.gjt.mm.mysql.Driver) The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Caused by: org.pentaho.di.core.exception.KettleDatabaseException: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
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. Hostname: 127.0.0.1 |
This means the container can't access the database, the driver problem has been solved. More explanation can be found here: https://stackoverflow.com/questions/44543842/how-to-connect-locally-hosted-mysql-database-with-the-docker-container/44544841 |
thanks!! |
Hi, i have a new problem : Thank to your help ! |
you can add extra parameters that are added to the jdbc connection in the options tab of you connection. |
org.gjt.mm.mysql.Driver is a driver only support old version MySQL, it should be upgrade to com.mysql.cj.jdbc.Driver to support new version of MySQL |
In options set ssetSSL to false |
Just put both mysql-connector-java-5.1.49.jar and mysql-connector-java-8.0.21.jar into $CATALINA_HOME/lib ; |
I want to connect MYsql database ,but Unable to connect to database。 What should I do
The error message:
Error connecting to database [mysql] :org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed.
org.gjt.mm.mysql.Driver
org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed.
org.gjt.mm.mysql.Driver
Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed.
org.gjt.mm.mysql.Driver
Caused by: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:511)
... 59 more
The text was updated successfully, but these errors were encountered: