I have a big trouble: I need connect to my db in another city with Navicat (or other SQL clients). I made vpn - tunnel, but when I connect (with Navicat or other SQL clients) I get the following error
could not translate host name "ip" to address: Unknown host
Please help, what I need to do to fix this?
This happens with HeidiSQL, Navicat etc.
Related
I want to connect to oracle cloud database from SQL developer. for which I am creating ssh tunneling. But I am getting error.
`158.101.174.46` is `public IP address` and `10.0.0.2` is `private IP address`.
But it is giving below error. This is the reason I am not able to connect to DB.
Could you please guide me what mistake i am doing. is there any other way to connect. Am I doing some mistake in database?
I currently have access to a SQL Server by connecting to the company VPN, then use "Remote Desktop Connection" to access a windows system where I can I then can use SSMS to access the company Server to use the specific database that I'm getting data from. I am trying to write a python code that will only make SELECT calls to an SQL Server that can only be accessed when using the company's VPN for automating reports.
From my current understanding:
I need the pymssql library to do this remotely
I need to make sure TPC/IP is enabled in "SQL Server Configuration Manager" under SQL Server Network Configuration->Protocols for MSSQLSERVER
Right-click on TPC/IP and click properties to get the IP address and port numbers that can be used to access the database
Check the Windows Firewall in Control Center to check if those port numbers are open
Then code
I have done all this and check the port number by doing netstat -ab in Command Prompt
TCP 999.999.999.999:1234 ServerName:0 LISTENING
[sqlservr.exe]
From my understanding this should be all I need to do since I use "Windows Authentication" to access the server.
import pymssql
conn = pymssql.connect(server='ServerName',
database='DBname',
port=1234)
If I run the code above I get
OperationalError: (20002, b'DB-Lib error message 20002, severity 9:\nAdaptive Server connection failed (ServerName:1234)\n')
I'm not sure if I'm making the TCP call at all or if I'm failing the "Windows Authentication". I'm not sure if I need to use my username and password for the VPN as well. Does anyone know how I need to get this connection to work?
Excess info if needed: I'm coding in python 3.7 and Microsoft SQL Server Manager Studio 2014
I'm new in AWS world. I have an issue to access to my instance of Microsoft SQL Server 2012 Express (11.00.5058) on RDS (US-East-1a).
When I have created DB instance, I was able to access to it, create some tables, transfer data, etc.. everything worked fine !
I didn't change anything and few hours after some inactivity, I try to access to the SQL Server instance by using Microsoft SQL Server Enterprise Manager but I was not able to connect to it anymore. I got following message:
Cannot connect to m3instance.cqbvdcpcgye3.us-east-1.rds.amazonaws.com,1433.
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 - The wait operation timed out.) (Microsoft SQL Server, Error: 258)
Currently, instance appears as available, the security group is 'rds-launch-wizard (sg-be4afcc6)'.
I have try to connect to 1433 port on via Telnet and no success.
Instance name is m3instance.cqbvdcpcgye3.us-east-1.rds.amazonaws.com.
Do you have any idea what append ?
Thank a lot for your help.
UPDATED
Telnet command return this :
telnet m3instance.cqbvdcpcgye3.us-east-1.rds.amazonaws.com 1433
Connecting To m3instance.cqbvdcpcgye3.us-east-1.rds.amazonaws.com...
Could not open connection to the host, on port 1433: Connect failed
DB settings :
Security Group :
VPC :
I have tried to connect by using my home connection, or coffee shop wifi without success. I didn't check what was my IP address at this moment but the strange thing is that I was able to connect to SQL server when I have created DB instance (create SQL table, transfer data, etc...) but after few hours (and without any change), I was not able to access to it.
May be if I add a new rule in security group / inbound rule like this,it will fix my issue : (i didn't try yet because I'm at work right now and we have firewall that block SQL access)
At this point, data are not sensitive and security is not a big issue.
Thank again for your help guys !!!
This because maybe you choose the default group , so Edit Your Security Group And In (INBOUND) ADD RULE and allow connection from (ANYWHERE)
Actions
Edit inbounds rules
MS SQL TCP 1433 My Ip (Automatically appears the public ip of your router)
Save
Try connect
is there any way to connect to a remote database by using SQLyog? I have the ip address, user name and password of the database. However, I have 'Error 2203 - Can't connect to MySQL server on '[myIpAddress]' (10060)'` whenever I test connection in SQLyog.
It means there is no direct access to database ..
You can check by telnet to port 3306 from destination address.
You can connect to MySQL remotely using SSH, if the remote MySQL connection is not enabled. Please check the following screenshots:
I have created database and user and give all the privilege to the user.When i give the IP as Database host.It will show the following errors.Giving hostname as localhost it will work fine.
I am using phpmyadmin 3.3.2...
The error message is given below.
Failed to connect to your MySQL database server. MySQL reports the following message: Can't connect to MySQL server on '192.168.85.10' (111)
It seems that the IP address you use is your "external" IP and not the IP localhost would resolve to, which is most of the time your loopback: 127.0.0.1.
So if you are trying to connect from the same computer as the database is running you should use 127.0.0.1 as the IP address.
If you are trying to connect to your database from another computer on the network, you should enable MySQL remote access in your my.conf (MySQL config file). Because by default MySQL disables remote incoming connections.
You do this by setting the "bind-address" line to your real (external) server IP as such:
bind-address = 192.168.xx.xx (assuming its on your local network)
Or put the bind-address in comment.
Also make sure that the skip-networking option is commented as such:
#skip-networking
And then restart your MySQL server.
Now also make sure that your MySQL users are also allowed to connect from locations other then "#localhost".
I hope this helps!
Cheers,
Timusan