Not logged in - Click here to login to your Account Welcome Guest!

MySQL Tutorials
Author Info:
iPromise
Posted about 1 year ago.
User Avatar
Total XP: 257

LoginHello, I WAS working on a Multiplayer client but I soon gave up because it was really complex. So I decided that I was going to teach you guys some main things you need in a multiplayer client, and the first major thing you need that I came accoss was MYSQL, so I thought it would be nice if I gave a step by step tutorial on how to login and/or register directly through the client.

 

So first for logining in, make a note that you need either a hosting account (anything is accepted)  and/or a free wamp server. You also need the MySQL component.

First you want to Add a Reference and Add the MySQL Component. Then you want to go to your code and on top of everything do:

Add a Form with:

 

2 Textboxes

2 Buttons

2 Labels

Name the first label "Username" and put it beside your first textbox.

Name the second label "Password" and put it beside your second textbox.

Name one Button "Login" and put it under Password.

Name one other Button "Close" and put it beside "Login".

So it would look like this:

Click on Login and add:

 

And if you want to add banned checker and see if this person is banned you need to create a table called banned and add this code on top of that code:

If you want to add a Register Form make it look the way you want it to look, I suggest a smexy look like this:

 

And add this code:

 

What this does is create the user in the table and email the user his information

All the best

- iPromise

 

Jordan
Posted about 1 year ago.
User Avatar
Total XP: 870

Pardon me for saying, but first off, wouldn't it be easier to have a client/server configuration?

 

It seems to me you have the client doing all the work, Auth, Interacting with the DB, Ban checking..

IMHO, you should setup a client/server system, it would be more secure, as each client does not store a string of the mysql database password.

 

Just my 2 cents.

Specific
Posted about 1 year ago.
User Avatar
Total XP: 4875

You don't want to store the database information in the client.  Jordan is right.

iPromise
Posted about 1 year ago.
User Avatar
Total XP: 257

@Jordan I wanted the client to be like GameRanger. Also I didn't want to make a Website for registration, etc. I wanted the Client to do the work.

@Specific Well, I will pack it with themida and secure it so dont worry.

 

Note: I gave up on the client so who cares.

Specific
Posted about 1 year ago.
User Avatar
Total XP: 4875

Great tutorial on how to use MySQL in Visual Basic by the way.

The point I was trying to make is that the client should not store information that needs to be secure.  Your MySQL username, password, database, and tables in the client is easily obtainable with simple reverse engineering.  This is why the best method is to have a client application and a server application.  The client would connect to the server sending the user's login / registration information.  The server will then connect to the database, do the work, and send a result back to the client.

Thanks

iPromise
Posted about 1 year ago.
User Avatar
Total XP: 257

@Specific I see, thanks.

Jordan
Posted about 1 year ago.
User Avatar
Total XP: 870

Old thread revival!!

 

You also might want to include how one installs the MySQL component. lol


Not logged in - Click here to login to your Account
Other Topics of Interest
Topic Title Forum Last post Info
Working on my DJ pages.. new idea to make things easier... PHP May 29, 2009, 2:59 pm by mfoland
December 31, 1969, 5:00 pm by
Purging database. PHP February 24, 2009, 4:49 am by Jordan
Build a product issuance database PHP February 1, 2009, 9:33 pm by mfoland
showing offices in profile PHP February 8, 2009, 6:03 pm by mfoland