Results 1 to 8 of 8

Thread: mySQL connection

  1. #1
    Lively Member
    Join Date
    May 09
    Posts
    107

    mySQL connection

    Hello,

    I have webhost and having mySQL database, but how i can connect it? In Visual Basic project. I have no idea.. So how do it?

    I want make like that login form (Using mySQL database in webhost username & password) and check it.

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 12
    Posts
    5,984

    Re: mySQL connection

    Has Google closed down or something?

    http://www.dreamincode.net/forums/to...nect-to-mysql/

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 02
    Location
    Bristol, UK
    Posts
    35,628

    Re: mySQL connection

    You connect in the same way as you would with a local MySQL database, you just put different values in the connection string for the database location etc.

    As to what the values should be, your host should be able to tell you that - or more likely, tell you that they do not allow remote connections to their databases because it is a big security risk.

  4. #4
    Lively Member
    Join Date
    May 09
    Posts
    107

    Re: mySQL connection

    Quote Originally Posted by si_the_geek View Post
    You connect in the same way as you would with a local MySQL database, you just put different values in the connection string for the database location etc.

    As to what the values should be, your host should be able to tell you that - or more likely, tell you that they do not allow remote connections to their databases because it is a big security risk.
    Atleast i have webhost CPanel, just there i can create mySQL database and enable/disable remote connection.

    But is that good idea for instant messenger program? If not, then what i should make it? I've heard about TCPlistener or something for instant messenger, but i dont know if that's good or not.. Just like creating email account and logging into messenger -> You can add contact and click on contact then you can talk with (selected) contact. Like the Windows Live Messenger.

    dunfiddlin, sorry btw, i downloaded this and now installing that.

  5. #5
    Lively Member
    Join Date
    May 09
    Posts
    107

    Re: mySQL connection

    Can someone reply about last post made by me? (About question's)

    Thanks,
    Matuu.

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 02
    Location
    Bristol, UK
    Posts
    35,628

    Re: mySQL connection

    Using network communication like TCP is valid for a messenger type application, but in order to have features like logging in and contacts (assuming you want the users to be able to log in from any computer) then a network/web based database of some kind is needed - and it is then perfectly valid to use the database for everything else too.

  7. #7
    Lively Member
    Join Date
    May 09
    Posts
    107

    Re: mySQL connection

    Quote Originally Posted by si_the_geek View Post
    Using network communication like TCP is valid for a messenger type application, but in order to have features like logging in and contacts (assuming you want the users to be able to log in from any computer) then a network/web based database of some kind is needed - and it is then perfectly valid to use the database for everything else too.
    Can someone explain it about TCP, that how it must work? When logging into, then IP will restored into database? If port needed, but what about if someone have port, that isn't opened?

  8. #8
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 02
    Location
    Bristol, UK
    Posts
    35,628

    Re: mySQL connection

    You wouldn't usually use TCP etc and a database together for something like this, it is basically more sensible to use one or the other.

    The exception to that would be if all the clients communicate with a server based program via TCP etc, and the server based program then does the work with the database as needed (and the clients don't work directly with the database). This would allow you to keep the database secure, so that people can't steal each others login id's etc.

Posting Permissions

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