I am trying to connect hive database from Apache superset both are running in same Ubuntu server but I am unable to connect getting errors.
URL that I am using is- hive://{myipaddress}:{port(10000)}/database
But getting error like- please check your connection details and database settings and ensure that your database is accepting connections, then try connecting again
Related
I have a Django app running on ELB connecting to a MySQL RDS db.
I checked recently and its no longer working (application is up fine but I get the following error when I try and deploy or run any manage.py db related commands. I can connect to the RDS DB manually without a problem.
django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on '****.eu-west-1.rds.amazonaws.com' (110)").
I believe this is to do with the recent updates to SSL/TLS certificates - however I've gone into my RDS dashboard and updated to the new 2019 version there and I'm still getting this error.
Does anyone know what might be causing this? It worked fine before the cert change so I can only assume it's related.
I've tried adding the ssl-ca rds-ca-2019-root.pem to the DB options in django but still get the same error regardless.
Any help would be super appreciated as I'm pretty stumped currently.
Thanks!
If you are using TLS for your DB connections, I've had the most success using the "combined" ca bundle that AWS provides.
The file can be found here https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem which is referenced in the Using SSL/TLS to Encrypt a Connection to a DB Instance guide.. It would be good to also review this guide to sanity check any of your other assumptions.
I am tyring to connect from AWS to Sybase database and Azure SQL server using python (pymssql) and have the TLS enabled on the connections. This does not seem work even after trying (How to configure pymssql with SSL support on Ubuntu?).
Details: The encryption is turned on in freetds/pymssql. tsql -C, shows that OpenSSL is enabled. But when I check the SQL server side if the connection is encrypted, using this, SELECT *,encrypt_option FROM sys.dm_exec_connections, I see that the encrypt_option='False'
So, I am trying to see if pyodbc is the route that needs to be picked. Trying to see what are the odbc driver options for pyodbc to connect to Sybase with TLS enabled?
In order to connect to Azure SQL, I used pyodbc and ODBC Driver 17 for SQL Server.
In the pyodbc connect, I provided - Encrypt=YES;trustServerCertificate=Yes' in order to encrypt the connection and verified on the SQL server side, that the connection is encyrpted.
In order to connect to Sybase, I used pyodbc and FreeTDS driver with Encrypt=Yes option.
First time I am using PowerBI and trying to get the data source working.
What I am doing to connect at the moment:
Click on 'Get Data'
Select 'SQL Server database'
Where it says Server I enter server(ip address name) and the SQL instance name on the server e.g. 1.1.1.1\MSSQLSERVER
Its weird because sometimes it takes me to the next page where the options displayed are Windows and Database. I have tried using the login I would use on remote connection to get into the server but no luck. It throws the error:
Details: "Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)"
What am I doing wrong?
We have a webserver connected to an old database. The old database server is end of life. When we set that up we did not need a secure connection. Now we have a new database on a new database server. Our IT department is requiring this to be a secure connection (even though it's an intranet).
Using ColdFusion Administrator I tried simply editing the URL of the server, but I get this error:
Connection verification failed for data source: xxxxxxxx
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer
JDBC Driver]The SQL Server login requires an SSL connection. The root
cause was that: java.sql.SQLNonTransientConnectionException:
[Macromedia][SQLServer JDBC Driver]The SQL Server login requires an
SSL connection.
That's when I heard from my IT people that it needs to be a secure connection.
I have no idea how to do that, and Google didn't offer me any help, probably because I don't know what to search for.
Could one of you wonderful people please offer a suggestion on how to create a secure connection from ColdFusion Administrator 10 to MS SQL 2008?
Thank you
I am running into an issue where I am unable to connect to my RDS MySQL instance from my Flask app. I am using SQLAlchemy and everything is working locally but when I push my code to AWS I get the following error:
sqlalchemy.exc.OperationalError
OperationalError: (OperationalError) (1045, "Access denied for user 'db_user'#'xx.xx.xx.xxx' (using password: YES)") None None
Now I know for a fact that the error is not a security group issue as I am able to connect locally and on the instance using the MySQL client.
Well it turns out I wasn't doing anything wrong and this wasn't an error with AWS or Flask, it was strictly a SQLAlchemy bug! It turns out the URI format for MySQL connections is:
dialect+driver://username:password#host:port/database
My bug came from the fact that my password with a plus (+) character in it thus fooling the URI format into thinking everything before it was the dialect. Using a '+' character is completely legal for MySQL passwords and thus why connecting via the MySQL client was working. I hope anyone else with this error is able to find this and not spend as much time as I did trying to find a solution!