SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (localhost) (severity 9) - pdo

SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (localhost) (severity 9)
I'm connecting Sybase15.7 using php7.0n getting above error.
Please help me resolving this.
Thanks in advance.

Try removing the port from hostname and adding it to .conf.
[192.168.5.57]
host = 0.0.0.0
port = 1433

Related

cURL error 7: Failed to connect to localhost port 8332: Connection refused

how to solve this problem under laravel? Help me
cURL error 7: Failed to connect to localhost port 8332: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:8332/wallet/1
when creating a wallet in an application for the blockchain.
documentation
la documentation
Thanks
I tried to read the documentation but without any result or change the ports
I figured it out a way. Change from localhost:8332 to your Windows IP: IPv4: 192.168.XX.X:8332. It was the only way that worked it out.

Failed to connect to s3.amazonaws.com port 443: Connexion refused

I have a problem with amazon S3, I created a site hosted on OVH, when I am on the site I can upload and download files but when I try to connect in SSH, I have the following error:
running : curl -v https://s3.amazonaws.com
* Rebuilt URL to: https://s3.amazonaws.com/
* Hostname was NOT found in DNS cache
* Trying 52.216.241.214...
* connect to 52.216.241.214 port 443 failed: Connexion refused
* Failed to connect to s3.amazonaws.com port 443: Connexion refused
* Closing connection 0
curl: (7) Failed to connect to s3.amazonaws.com port 443: Connexion refused
If someone has an idea where the problem may come from and how to resolve it, it would really help me

Database Connectivity Issue

I'm installing an application and getting following error:
Can't connect to SQL Server DB.
Error: The TCP/IP connection to the host , port 1433 has failed.
Error: : Connection timed out. Verify the connection properties.
Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connection at the port.
Make sure that TCP connections to the port are not blocked by a firewall.
Can someone please advise me?
Issue resolved with the help of SQL Server configuration Manager

ApacheDS suddenly stopped connection

I've setup ApacheDS on my windows7 machine. It was working fine but suddenly it says connection refused.
Server is up but when trying to connect it gives below error. Please help
Error while opening connection
- Cannot connect on the server: Connection timed out: no further information
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect on the server: Connection timed out: no further information
at org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:564)
at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:227)
at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1174)
It says connection refused.
No it doesn't. It says 'connection timed out'. It's not the same thing.
You have a connectivity problem or a firewall problem between the client and the server.

SSL connection between eDirectory and OpenLDAP

I use a State Machine Driver to connect our eDirectory (Source) to a OpenLDAP Directory (Destination).
Without SSL everything is fine...but only for testing.
Now i need to use SSL.
I activated use-ssl (Driver Configuration -> Driver Parameters) and give the path to a keystore.
I add a self-signed-certificate of the OpenLDAP-Server to the keystore.
After restarting the driver i get (servername replaced by xxxx):
java.net.ConnectException: Connection refused
16:12:15 FFFFFFFFFAA5D700 Drvrs: eDir-OpenLDAP PT:eDir-OpenLDAP: Schema.Schema() - LDAPException: Unable to connect to server xxxx:636 (91) Connect Error
java.net.ConnectException: Connection refused
I used /opt/novell/eDirectory/lib/nds-modules/jre/lib/security/cacerts as keystore.
What could i try next to get the SSL-connection running?
Thank you for reading this question!
The problem is solved.
Port 636 was closed on the destination server.
Thank you for the hint Bruno.