Connect remotely to MySQL Server from C#

Collapse
This topic is closed.
X
X
Collapse
+ More Options
Posts
 
  • Time
  • Show
Clear All
new posts
  • sa.lassis
    Private

    • Mar 2009
    • 2

    #1

    Connect remotely to MySQL Server from C#

    Well I am developing a Windows Application in C# and I have a Web Hosting with you. So what can I do in order to connect to MySQL Server from my C# Application?
  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #2
    Re: Connect remotely to MySQL Server from C#

    1) First you need to download a connector from mysql for c#.. I would imagine its connect/net
    http://dev.mysql.com/downloads/connector/

    2) Then when you setup your database make sure you change your "Access hosts" to allow your IP address to connect to the database. You should be able to enter just "%" with none of the IP ranges specified to allow any IP to connect

    3) And finally I would then find a tutorial on using the connector, there should be many out there.

    I hope that helps

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

    Comment

    Working...