+ Reply to Thread
Results 1 to 3 of 3

Thread: Data Source for VB.NET program

  1. #1
    proximad is offline x10Hosting Member proximad is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    2

    Exclamation Data Source for VB.NET program

    "
    Hi everybody,
    i'm new, and i'm trying to connect to my mysql database using a VB.NET program, i need for that to know the Data Source" of my database, i can't type "localhost" because I'm trying to connect to the x10hosting database that i create from my computer, i tried to put 74.86.116.190 as suggested in this thread : http://forums.x10hosting.com/free-ho...l-databse.html but it didnt' work and finally i puted 67.228.162.200 as i saw in my Cpanel but it didn't work too.

    may somebody help me please.
    thank you
    Last edited by proximad; 11-02-2008 at 08:08 PM.

  2. #2
    natsuki's Avatar
    natsuki is offline x10 Sophmore natsuki is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    112

    Re: Data Source for VB.NET program

    I think you should post the code and maybe read on this http://forums.x10hosting.com/program...ming-help.html

    Otherwise maybe post in the code so people can look at the problem better.

  3. #3
    proximad is offline x10Hosting Member proximad is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    2

    Re: Data Source for VB.NET program

    ok thank you for the advices,
    here is the code i use to connect the program with my local data base i installed using easyphp, and it works, this time i need to connect my program with my online database who is installed in x10hosting, i tried to put the ip adress of the server but it didn't work, maybe it's because of the php restrictions, i changed the setings, and i'm waiting them to take effects, (it may take 12 hours) i hope that's the solution
    Code:
    Public Const ConnnectionStr = "Database=proximad;Data Source=localhost;User Id=root;Password=;"
    Public Function SeConnecter(ByRef Conn As MySql.Data.MySqlClient.MySqlConnection) As Boolean
            On Error GoTo dberr
            ' Se connecter ā la base MySQL
            Conn.ConnectionString = ConnnectionStr
            Conn.Open()
            ReconLoop = 0
            explorerFrm.ReconTimer.Enabled = False
            Return True
            Exit Function
    Edit:
    HI,
    i recieved an email that tell's me that my hosting account's version of PHP has been updated to version 2 successfully, unfortunally it still doesn't work, here is the code i used to connect to my database!
    Code:
    Public Const ConnnectionStr = "Database=proximad_proximad;Data Source=67.228.161.42;User Id=proximad_imad;Password=*******;"
    here is the error i recieved:
    Unable to connect to any of the specified MySQL hosts.
    thank u fot your help
    Last edited by proximad; 11-03-2008 at 12:29 PM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. Replies: 2
    Last Post: 09-09-2008, 02:19 PM
  2. It works! ...
    By bpakidz in forum Programming Help
    Replies: 4
    Last Post: 09-07-2008, 11:12 PM
  3. HTML help...
    By anuj_web in forum Programming Help
    Replies: 5
    Last Post: 05-08-2008, 11:22 AM
  4. Microsoft learns to live with open source
    By n4tec in forum Off Topic
    Replies: 3
    Last Post: 07-12-2005, 10:28 AM
  5. Pentagon creating student database
    By Iceman in forum Off Topic
    Replies: 1
    Last Post: 06-24-2005, 01:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers