- Joined
- Aug 18, 2004
- Messages
- 641
- Reaction score
- 3
My other tutorials:
http://forum.ragezone.com/f428/guide-setup-your-web-server-384471/
http://forum.ragezone.com/f428/guide-hex-edit-your-client-379958/
http://forum.ragezone.com/f428/guide-navicat-8-mysql-faqs-385036/
Damn, I'm sick of people keep asking the same question, what to fill up, why there's problem to connect and all those sh*t.
Now pull your ears and listen and follow the step.
The source is still under development, so stop all your fantasy of running a BIG MapleStory private server of yours. (seriously I don't get all those people advertising their MapleStory server, unless if you have a good knowledge on C++ and I wouldn't say a thing).
Download WampServer 2 -
Run and install it, for this guide I will assume you install it to D:\Wamp
Run WampServer.exe (D:\Wamp\wampmanager.exe)
Locate WampServer icon at the bottom right of your screen, left click and click "Put Online"
After you click "Put Online" WampServer will automatically restart and put it online.
MySQL User information
By default, there's an account created once you install
MySQL Username: root
MySQL Password:
Yes, there's no password. It's blank, as simple as that.
Create MySQL database and insert the query
Left click on WampServer icon, click "phpMyAdmin".
(the icon is different from before because it had been put online)
Alternatively you can just go to
Create a MySQL database, and name it maplestory, hit the Create button.
After your database has been created, click on SQL tab on the top.
Copy the SQL queries below,
Paste at the box and click the Go button.
Create account by using phpMyAdmin
Click "users" table on the left menu.
Click the tab Insert on top, in this example I will create a an account with username test123, password 123test, and gender is male. So I will do this,
*leave the ID field empty
Click the Ok button when you're done.
When you sees this means you have successfully create your account.
Edit your database by using phpMyAdmin
For example I wanna change my password to testing123, go to your users table (click users on the left menu). Click the tab "Browse", then click the small pencil icon to edit the row.
Change your password accordingly and hit the Go button.
You're done!
Summary
MySQL Host: localhost
MySQL Username: root
MySQL Password:
MySQL database: maplestory
MySQLM.cpp (X:\MapleStoryServer\MapleStoryServer\MySQLM.cpp)
Take note:
You aren't even suppose to make your own MapleStory public, the source is coded as to let people to development and not making it public for people to play yet. Unless you know what you're doing (with enough C++ and SQL knowledge).
In this guide your root user is without a password, don't worry about the security hole since you're not making it public.
Any question just ask here.
http://forum.ragezone.com/f428/guide-setup-your-web-server-384471/
http://forum.ragezone.com/f428/guide-hex-edit-your-client-379958/
http://forum.ragezone.com/f428/guide-navicat-8-mysql-faqs-385036/
Damn, I'm sick of people keep asking the same question, what to fill up, why there's problem to connect and all those sh*t.
Now pull your ears and listen and follow the step.
The source is still under development, so stop all your fantasy of running a BIG MapleStory private server of yours. (seriously I don't get all those people advertising their MapleStory server, unless if you have a good knowledge on C++ and I wouldn't say a thing).
Download WampServer 2 -
You must be registered to see links
Run and install it, for this guide I will assume you install it to D:\Wamp
Run WampServer.exe (D:\Wamp\wampmanager.exe)
Locate WampServer icon at the bottom right of your screen, left click and click "Put Online"
After you click "Put Online" WampServer will automatically restart and put it online.
MySQL User information
By default, there's an account created once you install
MySQL Username: root
MySQL Password:
Yes, there's no password. It's blank, as simple as that.
Create MySQL database and insert the query
Left click on WampServer icon, click "phpMyAdmin".
(the icon is different from before because it had been put online)
Alternatively you can just go to
You must be registered to see links
Create a MySQL database, and name it maplestory, hit the Create button.
After your database has been created, click on SQL tab on the top.
Copy the SQL queries below,
Code:
create table users(ID int auto_increment primary key, username varchar(20), password varchar(20), pin int, gender int);
create table characters(ID int auto_increment primary key, name varchar(12), userid int, level tinyint unsigned default 1, job smallint default 0, str smallint, dex smallint, intt smallint, luk smallint, chp smallint default 50, mhp smallint default 50, cmp smallint default 50, mmp smallint default 50, ap smallint default 0, sp smallint default 0, exp smallint default 0, fame smallint default 0, map int default 0, pos smallint default 0, gender tinyint, skin tinyint, eyes int, hair int, mesos int default 0);
create table equip(equipid int, type tinyint, charid int, pos smallint default 0, slots tinyint default 7, scrolls smallint default 0, istr smallint default 0, idex smallint default 0, iint smallint default 0, iluk smallint default 0, ihp smallint default 0, imp smallint default 0, iwatk smallint default 0, imatk smallint default 0, iwdef smallint default 0, imdef smallint default 0, iacc smallint default 0, iavo smallint default 0, ihand smallint default 0, ispeed smallint default 0, ijump smallint default 0);
create table items(itemid int, charid int, inv tinyint, pos smallint, amount smallint);
create table keymap(charid int, pos0 int default 0, pos1 int default 0, pos2 int default 2564, pos3 int default 3076, pos4 int default 3332, pos5 int default 4612, pos6 int default 5380, pos7 int default 0, pos8 int default 0, pos9 int default 0, pos10 int default 0, pos11 int default 0, pos12 int default 0, pos13 int default 0, pos14 int default 0, pos15 int default 0, pos16 int default 2052, pos17 int default 1284, pos18 int default 4, pos19 int default 1028, pos20 int default 0, pos21 int default 0, pos22 int default 0, pos23 int default 260, pos24 int default 0, pos25 int default 4868, pos26 int default 3588, pos27 int default 3844, pos28 int default 0, pos29 int default 13317, pos30 int default 0, pos31 int default 516, pos32 int default 0, pos33 int default 0, pos34 int default 3456, pos35 int default 2820, pos36 int default 0, pos37 int default 772, pos38 int default 0, pos39 int default 5124, pos40 int default 4100, pos41 int default 0, pos42 int default 0, pos43 int default 2308, pos44 int default 12805, pos45 int default 13061, pos46 int default 1540, pos47 int default 0, pos48 int default 0, pos49 int default 0, pos50 int default 1796, pos51 int default 0, pos52 int default 0, pos53 int default 0, pos54 int default 0, pos55 int default 0, pos56 int default 13573, pos57 int default 0, pos58 int default 0, pos59 int default 25606, pos60 int default 25862, pos61 int default 26118, pos62 int default 26374, pos63 int default 26630, pos64 int default 26886, pos65 int default 27142, pos66 int default 0, pos67 int default 0, pos68 int default 0, pos69 int default 0, pos70 int default 0, pos71 int default 0, pos72 int default 0, pos73 int default 0, pos74 int default 0, pos75 int default 0, pos76 int default 0, pos77 int default 0, pos78 int default 0, pos79 int default 0, pos80 int default 0, pos81 int default 0, pos82 int default 0, pos83 int default 0, pos84 int default 0, pos85 int default 0, pos86 int default 0, pos87 int default 0, pos88 int default 0, pos89 int default 0);
create table skills(charid int, skillid int, points int);
Create account by using phpMyAdmin
Click "users" table on the left menu.
Click the tab Insert on top, in this example I will create a an account with username test123, password 123test, and gender is male. So I will do this,
*leave the ID field empty
Click the Ok button when you're done.
When you sees this means you have successfully create your account.
Edit your database by using phpMyAdmin
For example I wanna change my password to testing123, go to your users table (click users on the left menu). Click the tab "Browse", then click the small pencil icon to edit the row.
Change your password accordingly and hit the Go button.
You're done!
Summary
MySQL Host: localhost
MySQL Username: root
MySQL Password:
MySQL database: maplestory
MySQLM.cpp (X:\MapleStoryServer\MapleStoryServer\MySQLM.cpp)
int MySQL::connectToMySQL(){
if(!mysql_real_connect(&maple_db, "localhost", "root", "", "maplestory", 3306, NULL, 0)){
printf(mysql_error(&maple_db));
return 0;
}
return 1;
}
Take note:
You aren't even suppose to make your own MapleStory public, the source is coded as to let people to development and not making it public for people to play yet. Unless you know what you're doing (with enough C++ and SQL knowledge).
In this guide your root user is without a password, don't worry about the security hole since you're not making it public.
Any question just ask here.
Last edited: