|
-
Aug 21st, 2012, 09:56 AM
#1
Thread Starter
Lively Member
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.
-
Aug 21st, 2012, 10:17 AM
#2
-
Aug 21st, 2012, 10:17 AM
#3
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.
-
Aug 21st, 2012, 11:08 AM
#4
Thread Starter
Lively Member
Re: mySQL connection
 Originally Posted by si_the_geek
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.
-
Aug 22nd, 2012, 09:50 AM
#5
Thread Starter
Lively Member
Re: mySQL connection
Can someone reply about last post made by me? (About question's)
Thanks,
Matuu.
-
Aug 22nd, 2012, 10:01 AM
#6
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.
-
Aug 22nd, 2012, 10:25 AM
#7
Thread Starter
Lively Member
Re: mySQL connection
 Originally Posted by si_the_geek
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?
-
Aug 22nd, 2012, 10:46 AM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|