Accessing MySQL Database from my VB.NET 2008 Project

前端 未结 2 1879
终归单人心
终归单人心 2021-01-07 09:01

I developed a project in VB.NET

In this project I want to use data from MySQL that is resides in my WEB Server.

I can communicate with the MySQL server of my

相关标签:
2条回答
  • 2021-01-07 09:21

    Since your post indicates you can access the DB on your localhost, it doesn't seem to be an issue with the way you're connecting to the DB from your application (.NET-Connector?).

    What does the external MySQL-Server say? Access denied? Or can't you reach it from the pc where your application is hosted (aka maybe a firewall regulation, other network etc.)?

    0 讨论(0)
  • 2021-01-07 09:29

    The first step is to try to connect to the web mysql with MySql Query Browser - that will tell you if the database is open for remote connections ( I assume it would fail)

    I guess you have already checked it, but make sure you use the correct ip

    EDIT:

    As Björn said, your vb code is ok, so the problem is with the connection to the db.

    Unfortunately that would be caused by many many reasons.

    • Are you sure you use a real IP from the host (and use it in the mysql settings)?
    • Are you sure you entered the correct remote host in the mysql settigns?
    • Are you sure you have correct connection string in the vb code?
    0 讨论(0)
提交回复
热议问题