Results 1 to 15 of 15

Thread: MySQL connect using dial up connection with VB.NET

  1. #1

    Thread Starter
    Member rsalumpit's Avatar
    Join Date
    Jan 2008
    Posts
    56

    MySQL connect using dial up connection with VB.NET

    I want to connect to a MySQL database but the only connection available is a telephone line, a dial-up connection. I'm using vb.net 2005 Express for my project. All local connections are working the only problem is how can i get the server to connect, like IP to connect to establish a connection.

    Thanks!

  2. #2

    Thread Starter
    Member rsalumpit's Avatar
    Join Date
    Jan 2008
    Posts
    56

    Re: MySQL connect using dial up connection with VB.NET

    Anyone? Thanks!

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: MySQL connect using dial up connection with VB.NET

    i don't see the problem? have a look at this:

    http://www.connectionstrings.com/mysql

  4. #4

    Thread Starter
    Member rsalumpit's Avatar
    Join Date
    Jan 2008
    Posts
    56

    Re: MySQL connect using dial up connection with VB.NET

    Quote Originally Posted by .paul. View Post
    i don't see the problem? have a look at this:

    http://www.connectionstrings.com/mysql
    My problem is what will be the IP/server address if i will connect using a phone line using a modem? How can i get the other ends IP/server address?

  5. #5

    Thread Starter
    Member rsalumpit's Avatar
    Join Date
    Jan 2008
    Posts
    56

    Re: MySQL connect using dial up connection with VB.NET

    Thanks for the reply.

    Yes, I'm totally new to dial-up connection. My problem is how will get the IP of the end client I'm trying to connect? So that i can use it as the "server" on MySQL connection string.

    Thanks Again!

  6. #6
    PowerPoster make me rain's Avatar
    Join Date
    Sep 2008
    Location
    india/Hubli
    Posts
    2,208

    Re: MySQL connect using dial up connection with VB.NET

    you need to just mention the IP,PORT,DATABASE,USERNAME,PASSWORD of your server in the connection string.
    not necessary to bother who is the network provider,type of network,speed of network etc...
    application will find it's route to your said server , if it is on the network, or else application will say unable to connect.
    just go ahead
    The averted nuclear war
    My notes:

    PrOtect your PC. MSDN Functions .OOP LINUX forum
    .LINQ LINQ videous
    If some one helps you please rate them with out fail , forum doesn't expects any thing other than this

  7. #7

    Thread Starter
    Member rsalumpit's Avatar
    Join Date
    Jan 2008
    Posts
    56

    Re: MySQL connect using dial up connection with VB.NET

    Quote Originally Posted by make me rain View Post
    you need to just mention the IP,PORT,DATABASE,USERNAME,PASSWORD of your server in the connection string.
    not necessary to bother who is the network provider,type of network,speed of network etc...
    application will find it's route to your said server , if it is on the network, or else application will say unable to connect.
    just go ahead
    Ok the problem is now i can establish connection thru dial-up then. How will i get the IP/SERVER NAME to connect and add it to the connectionstring?

  8. #8
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: MySQL connect using dial up connection with VB.NET

    you need to add to the connection string:
    Code:
    Host=localhost;
    or replace localhost with whatever IP you require.

  9. #9

    Thread Starter
    Member rsalumpit's Avatar
    Join Date
    Jan 2008
    Posts
    56

    Re: MySQL connect using dial up connection with VB.NET

    Quote Originally Posted by Justa Lol View Post
    you need to add to the connection string:
    Code:
    Host=localhost;
    or replace localhost with whatever IP you require.
    That will connect to my localhost mysql server i think.

  10. #10
    PowerPoster make me rain's Avatar
    Join Date
    Sep 2008
    Location
    india/Hubli
    Posts
    2,208

    Re: MySQL connect using dial up connection with VB.NET

    yes localhost is your own system,
    if you need to connect to a remote system then you need to say to your connection objects connection string that where is the foreign host ( as against to the localhost ) that is , the IP of that system
    that will never be duplicated in one network tree, but you need to know that what is that foreign system IP, on which your server is living
    The averted nuclear war
    My notes:

    PrOtect your PC. MSDN Functions .OOP LINUX forum
    .LINQ LINQ videous
    If some one helps you please rate them with out fail , forum doesn't expects any thing other than this

  11. #11
    PowerPoster make me rain's Avatar
    Join Date
    Sep 2008
    Location
    india/Hubli
    Posts
    2,208

    Re: MySQL connect using dial up connection with VB.NET

    How will i get the IP/SERVER NAME to connect
    when you are posting a letter ( i mean the data ) you need to specify the consignee address, that is the IP of the other system at other part of the world,
    other wise how the post man will take it ? & take it to where,

    hence better he ( i mean the application ) will reject your parcel at the first it self.
    The averted nuclear war
    My notes:

    PrOtect your PC. MSDN Functions .OOP LINUX forum
    .LINQ LINQ videous
    If some one helps you please rate them with out fail , forum doesn't expects any thing other than this

  12. #12
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: MySQL connect using dial up connection with VB.NET

    You dailup has absolutely nothing to do with the connectionstring. Your app need to communicate with the server-table, not with your provider.


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  13. #13

    Thread Starter
    Member rsalumpit's Avatar
    Join Date
    Jan 2008
    Posts
    56

    Re: MySQL connect using dial up connection with VB.NET

    Quote Originally Posted by Radjesh Klauke View Post
    You dailup has absolutely nothing to do with the connectionstring. Your app need to communicate with the server-table, not with your provider.
    Imagine i have no internet connection. And i only want to connect to other machine using dialup. End to end. The only one i have is a telephone number to connect. After I'm connected to the other end, What will be my connection string? The phone number also?

  14. #14
    PowerPoster make me rain's Avatar
    Join Date
    Sep 2008
    Location
    india/Hubli
    Posts
    2,208

    Re: MySQL connect using dial up connection with VB.NET

    refer to .poul's post at #3
    with telephone number you can only talk to them on phone,
    but you can not connect a database application

    a database application requires a computer address in which your MySQL server is running
    telephone number does not have any role here, but telephone network will provide the connectivity to other computers
    do one thing , open your cmd window
    type ipconfig ->
    this will display the Inernet protocol of your computer
    you can replace the " locoalhost" in your connection string with this string

    now you may get some idea i think
    The averted nuclear war
    My notes:

    PrOtect your PC. MSDN Functions .OOP LINUX forum
    .LINQ LINQ videous
    If some one helps you please rate them with out fail , forum doesn't expects any thing other than this

  15. #15

    Thread Starter
    Member rsalumpit's Avatar
    Join Date
    Jan 2008
    Posts
    56

    Re: MySQL connect using dial up connection with VB.NET

    Quote Originally Posted by make me rain View Post
    refer to .poul's post at #3
    with telephone number you can only talk to them on phone,
    but you can not connect a database application

    a database application requires a computer address in which your MySQL server is running
    telephone number does not have any role here, but telephone network will provide the connectivity to other computers
    do one thing , open your cmd window
    type ipconfig ->
    this will display the Inernet protocol of your computer
    you can replace the " locoalhost" in your connection string with this string

    now you may get some idea i think
    Yes. I think i got some ideas now. I will update you.

    Thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width