Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hosting provider(hostgator) has provide me(host,database name, userid and password).
i have tried but could not connect my database through my application.

What I have tried:

<connectionstring>
<add name ="connectionstring" connectionstring="Datasource=hostname; database=databasename; userid=username; password=password;" provider="MySql.Data.SqlClien"
<connectionstring>
Posted
Updated 21-Feb-18 17:38pm

1 solution

hi friend,
To remote access to DataBase server from your app, you must setting your MySQL server allow remote access.

cheers
 
Share this answer
 
Comments
manish-gusain8909 21-Feb-18 23:44pm    
server is of hosting service provider.

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