Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Configuring Simple Register Website and Data SQL File

Experienced Elementalist
Joined
Jan 28, 2013
Messages
235
Reaction score
124
Original source

Register System is working 4.0 and 1.0 files.
IBRbLS6 - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums


What I want to mention. From the first time, the Registration refused to work and where to fill in the database was also not entirely clear.
I decided to look at the contents of the register.php file.
In this file you should pay attention to the lines: from 269 to 272
Code:
[COLOR=#116644]269[/COLOR]     [COLOR=#0055AA]$webhost[/COLOR]=[COLOR=#AA1111]"localhost"[/COLOR];       [COLOR=#AA5500]// host[/COLOR]
[COLOR=#116644]270[/COLOR]     [COLOR=#0055AA]$webuser[/COLOR]=[COLOR=#AA1111]"root"[/COLOR];           [COLOR=#AA5500]// user[/COLOR]
[COLOR=#116644]271[/COLOR]     [COLOR=#0055AA]$webpwd[/COLOR]=[COLOR=#AA1111]""[/COLOR];               [COLOR=#AA5500]// password[/COLOR]
[COLOR=#116644]272[/COLOR]     [COLOR=#0055AA]$webdb[/COLOR]=[COLOR=#AA1111]"account_data"[/COLOR];   [COLOR=#AA5500]// database[/COLOR]
As we can see the database access password was not set.
The host address is registered as: localhost.
The name of the database "account_data" should be noted.
In registration testing, I used a local server with a host: localhost
The user has access to the database: root
Database Access Password: root
Database created in phpMyAdmin: account_data
This is how the contents of the file (fragment) began to look: register.php
Code:
[COLOR=#116644]269[/COLOR]     [COLOR=#0055AA]$webhost[/COLOR]=[COLOR=#AA1111]"127.0.0.1"[/COLOR];       [COLOR=#AA5500]// host[/COLOR]
[COLOR=#116644]270[/COLOR]     [COLOR=#0055AA]$webuser[/COLOR]=[COLOR=#AA1111]"root"[/COLOR];           [COLOR=#AA5500]// user[/COLOR]
[COLOR=#116644]271[/COLOR]     [COLOR=#0055AA]$webpwd[/COLOR]=[COLOR=#AA1111]"root"[/COLOR];           [COLOR=#AA5500]// password[/COLOR]
[COLOR=#116644]272[/COLOR]     [COLOR=#0055AA]$webdb[/COLOR]=[COLOR=#AA1111]"account_data"[/COLOR];   [COLOR=#AA5500]// database[/COLOR]

Next, open phpMyAdmin and create a new Database: account_data

u9exp2H - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums

Go to the SQL tab and paste the data below and click the "Go" button:
Code:
[COLOR=#0055AA][I]SET[/I][/COLOR] [COLOR=#0055AA][I]FOREIGN_KEY_CHECKS[/I][/COLOR]=[COLOR=#116644]0[/COLOR];
[COLOR=#0055AA][I]CREATE[/I][/COLOR] [COLOR=#0055AA][I]TABLE[/I][/COLOR] `account_data` (
  `id` [COLOR=#0055AA]int[/COLOR]([COLOR=#116644]10[/COLOR]) [COLOR=#0055AA][I]NOT[/I][/COLOR] [COLOR=#770088]NULL[/COLOR] [COLOR=#0055AA][I]AUTO_INCREMENT[/I][/COLOR],
  `accountname` [COLOR=#0055AA]varchar[/COLOR]([COLOR=#116644]20[/COLOR]) [COLOR=#0055AA][I]NOT[/I][/COLOR] [COLOR=#770088]NULL[/COLOR],
  `password` [COLOR=#0055AA]varchar[/COLOR]([COLOR=#116644]20[/COLOR]) [COLOR=#0055AA][I]NOT[/I][/COLOR] [COLOR=#770088]NULL[/COLOR],
  `email` [COLOR=#0055AA]varchar[/COLOR]([COLOR=#116644]35[/COLOR]) [COLOR=#0055AA][I]NOT[/I][/COLOR] [COLOR=#770088]NULL[/COLOR],
  `coins` [COLOR=#0055AA]varchar[/COLOR]([COLOR=#116644]255[/COLOR]) [COLOR=#0055AA][I]NOT[/I][/COLOR] [COLOR=#770088]NULL[/COLOR],
  `notice` [COLOR=#0055AA]varchar[/COLOR]([COLOR=#116644]255[/COLOR]) [COLOR=#0055AA][I]NOT[/I][/COLOR] [COLOR=#770088]NULL[/COLOR],
  [COLOR=#0055AA][I]PRIMARY[/I][/COLOR] [COLOR=#0055AA][I]KEY[/I][/COLOR] (`id`)
) [COLOR=#0055AA][I]ENGINE[/I][/COLOR]=InnoDB [COLOR=#0055AA][I]AUTO_INCREMENT[/I][/COLOR]=[COLOR=#116644]11[/COLOR] [COLOR=#770088]DEFAULT[/COLOR] [COLOR=#0055AA][I]CHARSET[/I][/COLOR]=utf8;

BoRuPBf - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums

It remains the case for small - to register our new game account. But, first check a couple of things:

1. The folder SimpleRegisterScript (it is better to get rid of the spaces in the folder name) with the contents placed in the directory: C:\wamp\www\
2. PostgreSQL, phpMyAdmin, AccountServer - Started.

Now that all the preparations have been completed in the browser, go to:
Code:
http:[COLOR=#AA5500]//localhost/SimpleRegisterScript/register.php[/COLOR]

Fill in the fields and confirm the registration.

9BXCDMl - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums


If everything is done correctly, the account we just created will appear in the PostgreSQL

uOpoud2 - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums


and phpMyAdmin databases.

yn5lViT - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums


attachment:
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Jun 5, 2016
Messages
8
Reaction score
0
dear Witcherivan the file "Simple Register Script.zip" not exist anymore .. :/:
can you plz reupload it ?
 
Newbie Spellweaver
Joined
Jun 5, 2016
Messages
8
Reaction score
0
Thanks witcherivan u the best :lol:
my server works fine ..but there a simple problem .. i did everything correctly .. and the other account was created in the phpmyadmin ..

witcherivan - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums



and in the postgres .. but when i lunch the client and enter the new Account .. i cant found the server "RageZone ForEver" look here in the black box :O:


witcherivan - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums



i fill it manual .. write "RageZone ForEver" and save .. but i still cant see the server in the game .. Although if i enter with the Basic-primary account i see the server normally
:?:
whats do you think the problem is ?
 
Experienced Elementalist
Joined
Jan 28, 2013
Messages
235
Reaction score
124
Maybe problem:
Look you last screen.
Parameter: curent_access character var... - User.
Need - Developer.
With the 'User' option on the local server, the game will not start.

Sorry my bad English :/

p.s. - [no advertis]
 
Last edited:
Newbie Spellweaver
Joined
Jun 5, 2016
Messages
8
Reaction score
0
Maybe problem:
Look you last screen.
Parameter: curent_access character var... - User.
Need - Developer.
With the 'User' option on the local server, the game will not start.

Sorry my bad English :/

p.s. - [no advertis]

Hmmmm is there a way to change this automatically ??
i registered in
"eternal-call.info" but i don't have permission yet :ehh:
 
CATMAGEDDON
Loyal Member
Joined
Aug 17, 2014
Messages
1,666
Reaction score
293
sorry for necro post,tried,didnt work,it registers it in mysql but not in the postgres
 
Initiate Mage
Joined
May 23, 2023
Messages
2
Reaction score
0
SET FOREIGN_KEY_CHECKS=0;
CREATE TABLE `account_data` (
`id` int(10) NULL AUTO_INCREMENT,
`accountname` varchar(20) NOT NULL,
`password` varchar(20) NOT NULL,
`email` varchar(35) NOT NULL,
`coins` varchar(255) NOT NULL,
`notice` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
_______________________________________________________
I failed : ( mb is it because I can't extract the Thumbs.db file ???
1684944548980 - Configuring Simple Register Website and Data SQL File - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Joined
Aug 19, 2010
Messages
2,735
Reaction score
2,601
SET FOREIGN_KEY_CHECKS=0;
CREATE TABLE `account_data` (
`id` int(10) NULL AUTO_INCREMENT,
`accountname` varchar(20) NOT NULL,
`password` varchar(20) NOT NULL,
`email` varchar(35) NOT NULL,
`coins` varchar(255) NOT NULL,
`notice` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
_______________________________________________________
I failed : ( mb is it because I can't extract the Thumbs.db file ???
View attachment 235961
You missed something in the code...

SET FOREIGN_KEY_CHECKS=0;
CREATE TABLE `account_data` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`accountname` varchar(20) NOT NULL,
`password` varchar(20) NOT NULL,
`email` varchar(35) NOT NULL,
`coins` varchar(255) NOT NULL,
`notice` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

Also, the "Thumbs.db" file is a standard Windows file that saves icon/thumbnail display information. The file is not related to any of the SQL data. You can ignore this file.
 
Back
Top