Unable to connect to server: timeout expired - database

I am trying to connect to the server's Postgres database with pgadmin.
pg_hba.conf:
postgresql.conf:
Connection with pgAdmin:
Error:

Related

Connection to Azure Managed server fails from .NET app but works when connection from the command line

I am trying to connect from an Azure virtual server (windows 10) to an Azure Managed SQL instance.
From the command line on the virtual server I can connect to the managed SQL instance using:
sqlcmd -S aserver-data01.public.abc123.database.windows.net,3342 -U User01 -P password
This connects fine.
I am running a compiled .NET executable on the same virtual server that attempts to connect to the managed SQL server using the following connection string:
DataBaseConnectionString, Data Source=aserver-data01.public.abc123.database.windows.net,3342; Database=MyDB; Integrated Security=false; User ID=User01; Password=password
It fails with:
System.Data.SqlClient.SqlException (0x80131904): 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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) ---> System.ComponentModel.Win32Exception (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Can anyone help, I can't seem to get it to connect.
The problem was the .net executable was pulling the connection string from a comma separated config file and so was splitting the connection string in half at the comma before the port number.

Can't Connect to Azure Server from SQL Server

I can't connect SQL Server to Azure. When I try to connect I get this error:
How can I solve this?
Connect to Server
Cannot connect to mukdo.database.windows.net.
ADDITIONAL INFORMATION:
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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (Microsoft SQL Server, Error: 10060)
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Make sure your IP is added in the firewall setting in Azure SQL. You can use 'Add client IP', if it's not added.enter image description here
My problem Solved After Change My Internet Connection

Login failed for user domain\MachineName$ error in Session Task

I have Informatica PowerCenter installed on my local machine and am able to successfully connect to the local SQL Server Database instance. However when I try to connect to a remote server I am getting 'Login failed for user domain\MachineName$'.
Here is the full Error -
Error connecting to database [
Windows authentication is used to access the Microsoft SQL Server database
Microsoft SQL Server Native Client 11.0: Login failed for user '<>\<>$'.
SQL State: 28000 Native Error: 18456
State: 1 Severity: 14
SQL Server Message: Login failed for user '<>\<>$'.
Database driver error...
Function Name : Connect
Database Error: Failed to connect to database using user [] and connection string [<>].].
Can someone throw light on how to get over this?

Unable to connect to my oracle XE database

I am unable to connect to my oracle XE database through sql dveloper after changing my system host name. Please help me to connect to database.
Status : Failure -Test failed: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

sqlstate=42000 on sqlconnect (HDBC),Login failed

I'm getting the below error while connecting the sql server through unix box, i have created the DSN for the sql server and passing the user id and pass word to connect the sql server,
here is the error
SQLSTATE=42000 ON SQLCONNECT(HDBC) DIAGNOSTIC=[FreeTDS] [SQL SERVER]
Login Failed.

Resources