How to establish connection from AWS database to Squirrel - java

I have created a db in AWS in my root account but when i wanted to connect it from my local Squirrel i am getting below shown error.
Steps i follwed were
create aws Databse(Mysql)
downloaded jdbc mysql driver and added to squirrel
created an Alias to test connection by giving all required content when i am testing it it gives below error
enter image description here

Related

JMeter Couldnt Connect to Phoenix using JDBC Connection

I'm setting up a JMeter Connection to Phoenix using its JDBC Connection Configuration but it wont connect due to some jars and connection problem. I have tried configuring all of the compatible jars and configure the connection but it won't work either.
I've added Phoenix Jar to Classpath in Test Plan Setting.
The JDBC connection setting are as below:
Database Url: jdbc:phoenix://ip:port:/hbase-unsecure/schema_name
Driver Class: org.apache.phoenix.jdbc.PhoenixDriver
After configuring the phoenix database all i want to do is to do some simple query like SELECT * FROM table_name
Using MySQL Connection was successful and it shows me the data inside the database. However using this Phoenix Configuration, it won't even connect to the database and I am getting various error such as
Cannot create JDBC driver of class 'org.apache.phoenix.jdbc.PhoenixDriver' for connect URL
or
Couldn't established connection
or
java.lang.NoClassDefFoungError: Could not initialize class org.apache.phoenix.jdbc.PhoenixDriver
I got it resolved. turns out the driver for phoenix (phoenix-4.7.0.2.6.1.0-129-client) is suitable for JMeter version 2.9.
And in order the phoenix driver to work in JMeter, use phoenix-4.7.0.2.6.4.0-91-client, not phoenix-4.7.0.2.6.1.0-129-client.
and if you have service mapping enabled problem, extract your jar, find hbase-default file, and add another property for service mapping enabled = true.

Unable to Connect to Postgresql using Eclipse

I'm trying to connect to the Postgresql database using Eclipse. I added a new Connection profile and entered the following below:
I am able to successfully Test the connection.
But when I try to connect, the database isn't displayed. How should I fix this?

Can not connect to Heroku's database remotely (Java)

I am trying to connect to my database remotely:
connection = DriverManager.getConnection(URL);
URL is of following format (all XXX values copied from Heroku's website):
jdbc:postgresql://XXX:XXX/XXXX?sslmode=require&user=XXX&password=XXXXX
I am getting:
org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "213......, SSL off
I had run (it didn't change "SSL off" status):
heroku config:set PGSSLMODE=require --app XXXXXX
and even added this to the URL as suggested in older posts (althought I didn't see any of it in Heroku's doc):
sslfactory=org.postgresql.ssl.NonValidatingFactory
Make sure you are using PG JDBC client 9.4 or higher. Your JDBC connection URL will need to include the URL param:
sslmode=require
For example:
jdbc:postgresql://<host>:<port>/<dbname>?sslmode=require&user=<username>&password=<password>
For more info see Heroku docs on Connecting to a database remotely.

Unable to connect to the MySQL server

In admin properties, the paths are correct but, this error always appears whenever I try to connect to MySQL server from NetBeans.
Unable to connect to the MySQl server:
org.netbeans.api.db.explorer.DatabaseException:Cannot establish a connection to jdbc:mysql://localhost:3306 for user root"
You need to install Download Connector/J (This is the official JDBC driver for MySQL.)
Official Download Page: http://dev.mysql.com/downloads/connector/j/

java.sql.SQLException: Single-Sign-On is only supported on Windows. Please specify a user name

I am using the jTDS driver in order to connect to an SQL Server database from my Android application, which uses the Windows Authentication. As advised in the FAQs, I read the READMESSO file and as told, I placed the native SPPI library (ntlmauth.dll) in the system path (defined by the PATH system variable)
However, when I try to connect to the database using the following code:
String driver = "net.sourceforge.jtds.jdbc.Driver";
Class.forName(driver).newInstance();
String connString = "jdbc:jtds:sqlserver://192.168.56.1/MyMovies;";
Conncection conn = DriverManager.getConnection(connString);
I get the following exception:
java.sql.SQLException: Single-Sign-On is only supported on Windows. Please specify a user name.
Since you are connecting from an android device, you would not be able to get the SSO credentials required by the driver to connect to SQL server. The setting you referred to works only if the java program trying to connect to the DB is on a windows machine, which is clearly mentioned by the error message.
Unless your application has authorization based on the SSO user connecting to the DB, you should have an SQL Server user-based authentication mechanism to connect to the server and all authorization procedures should be tied to this user.
You might have to give the username also.
"jdbc:jtds:sqlserver://192.168.56.1/MyMovies;instance=SQLEXPRESS;user=foo"

Categories