How to connect Neo4j JDBC driver with DbVisualizer - jdbc

I am running Neo4j 2.1.6, tried Neo4j 2.20 as well.
I can not connect it with DbVisualizer 9.1.13
And I can not find ANY step by step clear explanation on how to do it.
First I've got binary JDBC Neo4j-2.0.1-SNAPSHOT here
I can run my just installed Neo4j instance from the browser localhost:7474
and I don't know what the REST API is all about and if it is turned on by default.
I can run the Neo4j 2.20 same way that comes with a new feature of user authorization and I am not sure if that JDBC driver is compatible with it. My user:pass is neo4j:neo
So in DbVisualizer I clicked Tools->Driver Manager and filled out like this:
My connection properties are as follows:
I've got the error on connect:
Product: DbVisualizer Pro 9.1.13
Build: #2310 (2015-01-11 11:26:27)
Java Version: 1.8.0_25
OS Name: Windows Server 2012 R2
An error occurred while establishing the connection:
The selected Driver cannot handle the specified Database URL.
The most common reason for this error is that the database URL
contains a syntax error preventing the driver from accepting it.
The error also occurs when trying to connect to a database
with the wrong driver.

If you look at the documentation for the jdbc driver, you see that the database URL is:
jdbc:neo4j://localhost:7474/
Please try to make it work with 2.1.6 first.
For the 2.2. auth you have to use the token you got back as password.

Related

"Driver unable to load" message when connecting to an Oracle server from Apache Superset

I am trying to connect to an Oracle DB server from Apache superset. When I test the connection string it throws Driver unable to load.
I have even done installation of cx_oracle.
The most common problem when trying to connect apache superset to an Oracle DB is that apart from the cx_oracle library in the python part, you need to install the Oracle client library in the machine with superset. Refer to Oracle documentation and other Stackoverflow threads on how to do this.

StreamSets preview data from MySQL error

I was attempting to use StreamSets to query a MySQL database and publish the data into Elasticsearch (localhost).
I downloaded StreamSets' tarball on my Mac and unzipped it into my home directory. Running StreamSets dc started up on my first try, then I followed the instructions here to add the jdbc driver, then the instructions here to configure my StreamSets job. However, I got an error:
JDBC_00 - Cannot connect to specified database:
com.streamsets.pipeline.api.StageException: JDBC_06 - Failed to
initialize connection pool:
com.zaxxer.hikari.pool.PoolInitializationException: Exception during
pool initialization: Connection.isValid() is not supported, configure
connection test query.
Are you using an old MySQL JDBC driver (pre-JDBC 4.0)?
Based on the error you need to go to the Legacy configuration tab and specify a test query yourself such as SELECT USER() or SELECT 1 from 1 so that connections can be validated.

Correct driver to connect to Cloudera VM 5.10(CDH 5.10) hue hive interface sample database from client interface

I am trying to make a connection to Cloudera VM 5.10(CDH 5.10) hue hive interface sample database to test the right driver using dbVisualizer tool (https://www.dbvis.com/download)
I checked CDH 5.10 has hive version 1.1, I got this information from
I tested two drivers
1) Hive JDBC 1.1.0 standalone from
https://repo1.maven.org/maven2/org/apache/hive/hive-jdbc/1.1.0/
2) "hive-jdbc-1.1.0-cdh5.10.0-standalone.jar" directly getting from cdh VM.
Cunnection URL I am giving is :
jdbc:hive://http://127.0.0.1:10000
When I connect I get this error message
"An error occurred while establishing the connection:
The selected Driver cannot handle the specified Database URL.
The most common reason for this error is that the database URL
contains a syntax error preventing the driver from accepting it.
The error also occurs when trying to connect to a database
with the wrong driver. Correct this and try again."
Please let me know if I am doing something wrong here.

Connect teradata JDBC driver on coldfusion 11

I tried to install TERADATA JDBC on ColdFusion 11 using this link.
Everything is fine, but when I try to create the datasource, I get following errors:
"Connection verification failed for data source: TeraJDBC4
java.sql.SQLException: No suitable driver available for TeraJDBC4,
please check the driver setting in resources file, error:
com.teradata.jdbc.TeraDriver The root cause was that:
java.sql.SQLException: No suitable driver available for TeraJDBC4,
please check the driver setting in resources file, error:
com.teradata.jdbc.TeraDriver"
ColdFusion Class Path: C:\td\tdgssconfig.jar, C:\td\terajdbc4.jar
I am using ColdFusion 11 and WAMP web server. How can I solve this issue?
The error you are getting, is due to the missing driver from ColdFusion repository.
You need to place the jdbc driver jar file(s) at \ColdFusion11\cfusion\runtime\lib\ and restart ColdFusion 11 Application Service.
Do check, if the DB you are using, is supported with ColdFusion 11 or not here.

Certificate Exception connecting to Azure SQL with JDBC with default connection string (the one the management console says to use)

I'm wanting to connect to an Azure SQL Server from jdbc.
I copy the connection string from the azure management console. It is something like:
jdbc:sqlserver://XXXX.database.windows.net:1433;database=YYYY;user=ZZZZZ#XXXX;password=PPPPPPPPPPP;encrypt=true;hostNameInCertificate=*.database.windows.net
When I try and connect with this value I get the following error:
com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not
establish a secure connection to SQL Server by using Secure Sockets
Layer (SSL) encryption. Error:
"java.security.cert.CertificateException: Failed to validate the
server name in a certificate during Secure Sockets Layer (SSL)
initialization. The server name is *.database.windows.net, the name in
certificate is data.am2-1.database.windows.net.
Then if I change the *.database.windows.net to data.am2-1.database.windows.net as it says in the exception it works fine.
So is it a problem to set this name? I feel like if it is a wild card as default then it is probably going to change? and when it does I assume I won't be able to connect anymore.
Has anyone else had this issue? I am using the most up to date jdbc drivers for SQL Server that I could find.
Turns out an upgrade of the sql server jdbc version to version 4.0 cleaned up the issue.
I've got the same issue on JDBC driver version 4.1, downgrading to 4.0 resolved issue
You can also add trustServerCertificate=true in your connection string, but it's not recommended from a security perspective.

Resources