I have setup SQL Server 2008 Developer Edition. It automatically contains my system name which is sipl006 as Servername. My system IP is 172.27.28.44. My issue is it is not connecting remotely with IP address because my database is also accessed by different domain and I need IP address to authenticate the application with my database. I have googled about this but no helps.
servername : sipl006
Authentication : Sql server authentication
username : sa
password : blablabla
I have already checked the below details
1. SIPL006 >> properties >> connection >> Allowed Remote connections.
2. Sql server configuration Manager >> enable named pipes, TCP/IP, via etc.
3. Confirm default port 1433.
4. Firewall is already off.
I have only MSSQLServer instance not SQLExpress.
I have observe the in View connection properties that instance name field is blank.
so I need to access the database with IP not system name because different domain not recognize system name. It only recognize only IP address.
I need the below details for connectivity.
servername : 172.27.28.44 or 172.27.28.44\SQLEXPRESS
username : sa
password : blablabla
Please resolve my issue.
Thanks in advance.
Make sure the client connecting to your database server has 1433 outbound from their location. Also like MicSim says, see if you can connect from a client that you know has 1433 outbound open.
Also if you are trying \SQLEXPRESS you may want to verify UDP 1434 and SQL Browser service and/or verify that \SQLEXPRESS is not using a port other than 1433.
Related
I'm having a right nightmare trying to link Microsoft Access to MySQL.
I have selected the ODBC 3.51 to connect to mysql on access
Details required:
TCP / IP - mysql8.namesco.net OR IP Address
Named Pipe - BLANK
Username - **
Password - **
Port - 3306 (Default)
Database name
After I enter the above details i'm prompted with the following error:
Connection failed:[hy000][mysql][odbc 3.51 driver]Cant connect to MYSQL server on 'mysql8.names.net' (10061)/
I get the same error when I use ODBC 5.1 Driver:
Connection failed:[hy000][mysql][odbc 5.1 driver]Cant connect to MYSQL server on 'mysql8.names.net' (10061)
I have no idea what i'm doing wrong!
any help to resolve this would be amazing!
Can you ping the MySQL server from your machine? Can you connect to MySQL from your machine with any other MySQL client?
Sometimes hosting companies like names.co.uk put their MySQL servers behind firewalls. You may need to consult their tech support if you need access from someplace outside their data center.
Max Thorley: How do i ping? is it telnet IP address? I contacts names
to allow remote access. I gave them my public facing IP and IPv4
(which i believe is static)?? This what I get with telnet
C:\Users\max.thorley>telnet 192.168.35.24 Connecting To
192.168.35.24...Could not open connection to the host, on port 23: Connect failed C:\Users\max.thorley>telnet mysql9.namesco.net
Connecting To mysql9.namesco.net...Could not open connection to the
host, on por t 23: Connect failed
Try telnet mysql9.namesco.net 3306 to see if you can access the MySQL port. You probably can't. If you can't get to it you'll get a similar message to the ones you got with other telnet attempts. That means your hosting service has firewalled the MySQL server. If you can get to it you'll get some gibberish that looks roughly like this:
5.5.5-MySQL
%\~)L%q? $p*}X!73:i%wmysql_native_password
You probably can't get to it. This is common hosting-service practice, because it's a shared server and it's not very hard to mount denial-of-service attacks against MySQL servers. Again, you need to consult your tech support.
if its a hosting server you need to log into your cpanel and add your
external ip in the allowed ip range to connect the databases. also
many hosting have standalone ip for accessing database. as below
answer says raise ticket to your hosting support and ask for help –
krish KM
I have created a MySQL database and a table via cPanel on a web server of mine. My question is this: How can I access this Database and Table from a Visual Basic.net application?
What do I use as the host address? The http address to the web server is http://www.canninginc.co.nz
If you are trying to connect to MySQL from a remote location (for example from your computer), please use these instructions:
Use the IP address of your hosting account as your MySQL hostname.
Your IP address can by found on the left hand column when you login
to cPanel.
Please add your computer IP address to the cPanel -> Remote MySQL section. You can check the computer IP address at http://www.tracemyip.org/
Use either the MYSQL username / password that was created in cPanel -> MYSQL section, or your cPanel login details to connect to the database
I am trying to connect to a sql server in my asp.net application. I have given connection string in my web.config as follows :
I am getting following error while running the application :
"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: 26 - Error Locating Server/Instance Specified)"
If i use remote server's ip address as data source in connection string, I get following error
"Login falied for user 'sa'"
I researched and found some ports need to be opened between the server and my machine, which I got done by network team, still the same issue. How to resolve this ?
You can not directly. you need to have TCP/IP enabled and configured the TCP/IP Ports on sql server configuration manager at remote server.
you need to have TCP/IP connectivity .Just launch it, enter the DNS host name or IP address in the Server Name' box and hit Connect. The hosting company needs to have enabling TCP/IP on your SQL Server instance, and them providing you with secure access to the IP address that instance is running on.
Most administrators do not allow direct access to the SQL Server from outside the firewall. In that case, if you can connect to the host over VPN then you should be able to connect directly to the server with Enterprise Manager or SQL Management Studio.
Please go through it Configurations-Remote-Server
Are you porting code from Hypersonic or H2? If so, the username sa won't work.
I've set up a local SQL 2008 Server, enabled SQL Authentication, created a user for ColdFusion to use and verified that I can connect with that username and password using SSMS. (Connect using MACHINENAME\SQLEXPRESS)
However, I am unable to successfuly add the datasource in my CF Administrator, with the error being: Error establishing socket to host and port
Is there additional configuration of the server or ColdFusion that is necessary to connect?
You should be able to just use LOCALHOST as the server name, and port 1433 as the port number. You may have to enable IP connections through the SQL Server Configuration Manager. You can search Google for instructions on how to do that, which I found here and here.
i can't access my website mysql db from sqldeveloper.
in cpanel there is an option (Remote Database Access Hosts) which allows one to add IP addresses that can access the db. I have entered my ip address and i have used the % wildcard.
so for instance if my ip address was 12.34.56.78, i have entered my ip address as:
1 - 12.34.56.78
2 - 12.34.56.%
3 - 12.%.%.%
in sqldeveloper i have downloaded and added the mysql third party jdbc driver .jar file (mysql-connector-java-5.1.13-bin.jar).
i have the right user name, password, hostname and port.
so, if my website domain was called www.mysite.com and my username was user, the username i would use in sqldeveloper would be mysite_user.
and the hostname would be www.mysite.com.
the port i am told via cpanel is 3307.
i bow to any superior knowledge if my assumptions are incorrect.
any help would be appreciated
-- edit --
oh yeah, the error message I get (pretty important!) in sqldeveloper is
Status : Failure - Test failed: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
-- end edit --
I do the same via cPanel but after i connect to my host via SqlYog community edition...
Uniqe differce is the port, i use the standard 3306 port instead a custom port.
Try if it connect: http://code.google.com/p/sqlyog/
It turns out that i did need to use port 3306 but more importantly, my web host needed to make a change on their firewall.
i managed to connect using mysite.com, username, password and port 3306.
thanks #Achilleterzo for your help in the meantime