Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I had hosted the website with mysql database in Godaddy,and it was working fine, but i had the other database which was located at some other place,when i am trying Connect with my credientls,it was not working , please Specify How to connect to that databse From my godaddy server

(It means Setting in web.config,iis7 in godaddy server )


Note:- My credentials are prefect, and same connecting string was Connecting to the my server database,
Connecting string was

HTML
<add name="cona" connectionstring="server=serveripaddress;database=databasename;uid=root;pwd=pwd;allow zero datetime=yes" />



Please specify me the Solution
.
Thank Q In adavanced

[edit]HTML tags encoded, code block added - OriginalGriff[/edit]
Posted
Updated 6-Jul-12 0:26am
v2
Comments
bbirajdar 6-Jul-12 5:10am    
Did you try posting the question in Daddy's forums?
bbirajdar 6-Jul-12 5:11am    
is your SQL server on a public IP ?
[no name] 6-Jul-12 6:56am    
no is an Mysql in linux
it My Company own server,
It is not general shared Server like Godaddy etc...
Thanks
bbirajdar 6-Jul-12 7:23am    
Get the help from your network administrator. He will put your SQL server on a public IP. Then you will be able to access it from anywhere in the world via internet.. Read the Solution 1 by OriginalGriff carefully.... He has explained everything very clearly...
[no name] 6-Jul-12 7:29am    
it was my own , but we can able to acess that database from every where


for example: a windows application is Accessing the same Server with same Connecting String
they can able to Access this mysql server database from every where in the world

I think it was not the Problem

1 solution

Two possibilties that I can think of:
1) The IP is worng, or is local to your network.
2) The DB server is set not to accept remote connections.

Check the IP address you are using first: if it starts with 192 then it is a local IP, not internet, so you won't be able to see it from GoDaddy.
If it doesn't, then try connecting via Visual studio.

Try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.
 
Share this answer
 
Comments
[no name] 6-Jul-12 6:53am    
1).ip is fine and correct,
2).Daily we are acessing the Data(server) from windows application(from some where) remote Connection is Accepcting

it was not local ip, it will starts with 202...... and it was connecting throught Visual Studio

In Adding the Data Connection ==> Add Connection ==> DataProvider
Iam using the Mysql as a dataprovier so I am not getting the Mysql Data provider

That was the Problem
And Thanks For your Help.
bbirajdar 6-Jul-12 7:25am    
Do you know the difference in local IP and public IP ? Try pinging the SQL server from GoDaddy and you can check whether it is public or not..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900