I have configured my system to connect to the SQL Server 2008, I am running under windows server 2008, and I made the following:-
Enable TCP/IPon my SQL Server.
Activate and enable the 192.168.1.20 for the SQL Server.
Add two inbounds rules for the 1433 post on the firewall and the sqlserver.exe.
But when I tried to connect the database I got the following error:-
The TCP/IP connection to the host 192.168.1.20, port 1433 has failed.
Error: "connect timed out. Verify the connection properties, check
that an instance of SQL Server is running on the host and accepting
TCP/IP connections at the port, and that no firewall is blocking TCP
connections to the port.".
When I typed the following:
telnet 192.168.1.20
it gave me
Connecting To 192.168.1.20...Could not open connection to the host, on port 23:
Connect failed
So what might be the problem?
the telnet command is wrong, try
telnet 192.168.1.20 1433
You didn't mention about outbound rules. You need to add the inbound + outbound rules on your machine (in the firewall) and on SqlServer machine.
Related
I've gone through the basics, bind_address, Google's Firewall, ufw shows inactive but I can't even telnet to the machine on the mysql port.I'm trying to get spotfire to use our db directly just to test it out.
The mysql db is on a vm instance in Google Cloud. The server can of course work with the db no problem, any external connections don't go through with this error:
ERROR 2002 (HY000): Can't connect to MySQL server on '' (119)
Telnet says this:
Connecting To ...Could not open connection to the host, on port 3306: Connect failed
I'm sure I'm missing something, any help will be awesome.
Every time I try to connect to my mySQL on mysql workbench, it gives me this error message saying:
Your connection attempted failed for user 'root' from your host to server at http:x.x.x.x:3306: Cannot open SSH Tunnel:Error connecting SSH tunnel:Error Connecting to SSH server Error 11004 get addrinfo failed
I think you could get solution here: http://quintagroup.com/services/support/tutorials/mysql-linux
or follow this steps:
Open putty and accept the certificate of the server
hostname should be localhost ( in order to use local socket and not http conection)
local port should be something like 33010 not 3306
local port is the conection back port used by the plink and has nothing to do with mysql ports
I have InstallShield 2013 basic MSI project. During installer execution I need to connect to MySQL Server which is running on 3310 port. Default port is 3306 and installation runs successfully, but when I try to connect to server with different port - installer cannot connect to MySQL server.
I tried to set custom port like described here
ServerName,3310
But it didn't work for me. I also tried to connect by IP of server and port delimited with ":" but it also had no effect.
When I try to connect to server by typing hostname I get this error: "Can't connect to MySQL server on 'hostname'"
When I try to connect to MySQL server by typing hostname,port I get the following error: "Unknown MySQL server host 'hostname,port'"
Can anyone tell me what I am doing wrong or what I need to do to connect to MySQL server with custom port?
I just created a test RDS instance through the AWS console, and it has been created successfully (it says it is running and available). I currently have my security groups configured to SSH port 22 (MyIP) Custom TCP Rule port 3307 (myIP) and HTTPS port 443 (MyIP). I am currently trying to connect through MySQL workbench. I am using the endpoint of "RDS_URL" :3307 and inputting my username and password. Every time I try to connect, I get this error:
Can't connect to MySQL server "-RDS_URL-" (10060)
Any suggestions?
Default MySQL port is 3306, In RDS you can't change it but in datacenter hosted DB, you can change by changing in my.cnf file and restart it. Before doing it open the port from firewall rules.
I have installed SQL Server 2008 Express Edition on my Server.
I am hosting my applications on the same server.
I can remote in to my server with a ip xx.xxx.xxx.xx username and password
I can run SSMS on my server and connect to database as
server: (local)\SQLExpress
authentication: SQLServer
user: username
pwd: Password
I want to be able to access this SQL Server instance remotely, what I have done is:
Enabled SQL Browser
Enabled TCP/IP
Inbound Firewall enable fro SQLservr.exe
Enabled Firewall for port 1433
From my local pc SSMS, when I try to connect to:
server : xx.xxx.xxx.xx\SQLExpress
Authentication : SQL Server
Username: user
password: pwd
I get network error, to check if server name is correct.
Can anyone tell me how to fix this problem?
Also I want to access my server with sql.mydomain.com not with IP or machine name. How can I get this done?
update:
After doing all above I missed to restart SQL Server Service
Now I am able to access my SQL Server remotely
with this url
xx.xxx.xxx.xx\SQLExpress
How can I create a alias like
sql.mydomain.com
where should i do that?
Please check in the "SQL Server Configuration Manager" that the TCP/IP protocol is enabled.
Got this worked.
On Domain control point www.mydomain.com A record to ip xx.xxx.xxx.xx.
On my server install SQL Server with default instance (MSSQLServer)
Enable TCP/IP on Client Protocols
Add Port 1433 incoming Firewall
Add Inbound Firewall for SQLservr.exe
That's it Now I am able to connect to my sql server remotely with mydomain.com, username and password