First, I have downloaded microsoft jdbc driver(sqljdbc42.jar) for Sqlserver and added it to path. And I can use it to connect to my local MySQL database using the following codes:
database('**','**','**','com.mysql.jdbc.Driver','jdbc:mysql://localhost:3306/')
But I cannot connect to a remote SQLServer with error message: Unable to find JDBC driver. The codes are:
database('**','**','**','com.microsoft.sqlserver.jdbc.SQLServerDriver','jdbc:sqlserver://**')
Related
I`m trying to connect to my PostgreSQL database. What I create a connection and click the button "Test", I receive an error message. I can connect to this db via pgadmin without any problems, so it is not a connection or credentials issue
I`m using Pentaho kettle 8.3, Windows, java version "1.8.0_231"
Error connecting to database [Name] :org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
Error connecting to database: (using class org.postgresql.Driver)
Ошибка при попытке подсоединения.
Full error stack: https://pastebin.com/cLiB288e
Try to add postgresql-42.1.1.jar in the /lib folder of PDI, restart the spoon and try again.
i faced 2 issues myself connecting to PostgreSQL few months back and following 2 things helped me
1.add postgres-42.1.1jar file in the 'lib' folder under PDI and restart the spoon.
if the normal JDBC connection convention does not work for you try below tip
while configuring the connection specify host name as follows
{HOST IP}:{HOST PORT}/{instance name}?
I'm trying to create a JDBC connection between a project in Netbeans and a MySQL database. In the Netbeans connection wizard I receive the following
error: Cannot establish a connection to jdbc:mysql://localhost:3306/murach using com.mysql.jdbc.Driver (Unable to load authentication plugin 'caching_sha2_password'.)
I'm running Netbeans 8.2, MySQL 8.0.15 and Java JDK 1.8.0_201. I am able to connect to the database using the credentials supplied in the wizard via the command prompt.
I also confirmed that port 3306 is open in Windows Firewall.
make the driver something like com.mysql5.jdbc.Driver
I'm trying to evaluate icCube and I have a problem when I try to connect a PostgreSQL datasource. When I test the connection I get an error message about PostgreSQL driver missing:
Failed to establish the connection due to the error: JDBC driver class 'org.postgresql.Driver' not found in the classpath
I've checked the lib directory of icCube and it has postgresql-9.4.1207.jre7.jar bundled in the release, is there anything I'm missing?
To fix this, I had to add the PostgreSQL JDBC driver to bin/icCube.sh in the JDBC section:
CLASSPATH="$CLASSPATH:$ICCUBE/lib/postgresql-9.4.1207.jre7.jar"
I'm trying to connect to SQLite db from Jaspersoft ireports. I was able to create a datasource successfully but when I create a report using the datasource it gives me below error message.
java.sql.SQLException: file is encrypted or is not a database
I'm using below JDBC drivers:
JDBC Driver: org.sqlite.JDBC
JDBC URL: jdbc:sqlite:C:\\Users\\IT\\Desktop\\sqllitejdbc\\spiceworks_prod.sqlite
Any help is greatly appreciated.
Thanks.
JDBC Driver: org.sqlite.JDBC
JDBC URL: jdbc:sqlite:C:\Users\IT\Desktop\sqllitejdbc\wwe.sqlite
this is how i gave the Driver and URL but it does not work before that i gave jre file(sqlitejdbc-v056) to the classpath
Connecting/pinging a database in eclipse gives me error:
My software is: MySql Server 5.5.12, Connector/J 5.1.17, Eclipse IDE for Java EE Developers v. 1.4.0.20110615-0550.
Logging from console or phpmyadmin works ok.
Here is also screenshot of connection settings:
Any suggestions about this error?
You are loading a MSSQL driver, but you are running a MySQL server.
http://www.mysql.com/products/connector/
change the driver to Mysql driver 5.0 and it will connect properly