Post Pacific  

Go Back   Post Pacific > Online Gaming Mods > Ragnarok Online Mods
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 03.10.2005, 01:48   #1
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default eAthena SQL Installation Guide

Many of you have been complaining about the lack of information on the SQL installation procedures. I have now organized my data into a working tutorial for people to get started from scratch installing and configuring the MySQL 4.0 and eAthena SQL servers. (Note: Win32 NT based systems only(NT/2000/XP/2003)).


*NOTE: Updated for 1.xx.xx RC2 (Please contact me if any other info is inacurate)!


SQL SERVER SETUP
================================================== ====================

-First let's download the eAthena SQL server from:

eAthena SQL 1.xx.xx RC2: http://eathena.systeminplace.net/fil...v1.0.0-RC2.rar

-Let's extract that to oh let's say, c:\ (If you don't know how to extract a .rar you probably shouldn't be attempting this anyway, but search some software sites and install a program called winrar).

-Secondly, let's get to the installation of the SQL Server. Download all 3 of these files:

MySQL 4.0: http://dev.mysql.com/get/Downloads/M....zip/from/pick

MySQL Control Center: http://dev.mysql.com/get/Downloads/M....zip/from/pick

MySQL Administrator: http://dev.mysql.com/get/Downloads/M....zip/from/pick

-Choose a mirror from each of those links and download those three files.
-Extract each .zip to separate folders.
-Next step, run the MySQL 4.0 install and just install all the default stuff, you know, next->next->next.... and then do the same after that for Admin and Control Center installs.

================================================== ====================

-Next step is to reboot your server computer, so go ahead and reset the computer now.
-After we get it rebooted, let's go to the control panel and goto administrative tools, then open the services icon.
-Now at the bottom of the window click on the standard tab.
-Look for MySQL on the list and check to see if the next column says it's activated under status. If not, right click on MySQL and select start. Now close the services applet. (If you have Win XP Home then look at the FAQ at the bottom, these steps won't work).

-Next go to the MySQL Administrator program and open it.
-For the fields, just enter 'root' for the username and 'localhost' for the host, then click ok.
-Go to the User Administration tab.
-Select the root user and put in a password(for security if you want it, DO NOT MAKE THE PASSWORD 'ragnarok'!!!!) then hit the apply changes button.
-Next right click in the box where the user list is and select 'create new user'.
-for the username use 'ragnarok' and the password 'ragnarok' (This will be for the server to access to read/write to the database) and then hit the apply changes button.
-Close the MySQL Administrator program.

-Open up the MySQL Control Center program.
-When prompted for the info for the server in the new window, put in 'localhost' for the hostname, 'root' for the username, and whatever password if any that you made, then 'ragnarok' as the name.
-Click test if you want to see if it worked right, or just hit the add button.
-Right click on the new ragnarok connection in the server list and select connect.
-Right click on databases, select create new, and when prompted just enter 'ragnarok' and hit ok.
-Double click on User Administration to expand the folder.
-Right click on the ragnarok@localhost account and select edit.
-On the right side window, check the box next to the new ragnarok database.
-Now select the ragnarok database by left clicking on it to highlight it.
-Now check the 'All Privileges' check box on the left side, click apply, then close.

-Right click on your new ragnarok database and select 'new window from here'.
-Click the 'SQL' on the left-top side.
-Click the 'Open' folder icon and go to your c:\athenasql\sql folder and open main.sql.
-Up top, hit the red exclamation point ( ! ) icon to execute the script into the database. This should happen successfully.
-Next open the database.sql and execute it ( ! ) as well.
-Lastly open your db_tables.sql and execute that as well ( ! ).

-Now right click in the window with all the SQL code and select clear after you have successfully completed the executions.
-Copy, paste, and execute ( ! ) this into the SQL window:

Code:
INSERT INTO login VALUES
('0','s1','p1','0000-00-00 00:00:00','S','0','','0','0','0','0','0','0','0')


-That will allow the character and login servers to communicate with that login name (NEVER LOG INTO YOUR RO SERVER WITH THAT NAME!!!) (If you want to add yourself a GM account or any other accounts, view the FAQs at the bottom)
-Next, close the SQL window, goto the ragnarok database and open the login table.
-Now where you just created the s1 username, double click on it's ID # and change it to zero if it isn't already.
-After successful execution of that command close the control center.



eATHENA SERVER SETUP
================================================== ====================

-Open up your C:\athenasql\conf\ folder
-Open grf-files.txt and set the path of your grf files (I make a GRF folder in my athenasql folder then just point to those(Make it an absolute path like C:\athenasql\grf\adata.grf or such)).
-Open char_athena.conf in notepad and edit the server name to whatever you wish (Try not to use spaces (complicated reasons with ASCII)). Save and close.
-Open lan_support.conf and change the data in there to the appropriate IPs, make sure your subnet and subnet mask are right (If you need IP addressing help, you probably shouldn't be doing this anyway, go take Cisco CCNA classes like I did )!

Note: Just put your server's LAN IP in for both servers (unless you run on multiple servers or don't use LAN IPs)

-Just for kicks let's use a Class C private IP, the single server's IP is 1xx.xx8.1.100, so the char/map server IP would be 1xx.xx8.1.100 in the two fields, next the subnet would be 1xx.xx8.1.0, and finally the mask would be 2xx.xx5.255.0. Adjust your IP accordingly for this, this is just an example.

-Now just save and close that .conf file.
(If you want to know how to find your IP info, view the FAQ below)



Extra Server Setup
================================================== ====================
-If you want to run your server with the included easm2 (eAthena Server Manager) program, just goto your athenasql folder, and unrar the easm2.rar file, just launch the program and edit the IPs accordingly under each tab, the ports should be default if you didn't reconfigure them otherwise. You may also run the servers from DOS as instructed in the above tutorial, usually for debugging. EASM2 allows automatic reboots when crashed.

-If you want to upgrade from your existing eAthena txt version, just run the converter programs: char-converter.exe and item_db-converter.exe
Run these inside your old eA TXT's folder. Note: There is a bug with the item_db in your Ragnarok Database after you install it, please check the FAQs below for details.

-Other server edits, please check the FAQs below and/or search the forums!




FAQs
================================================== ====================

Q: How do I add an account to the server?
A: http://www.yuu-kun.com/eathena/guide_account.php

Q: How can I setup my router for people to access my server from outside my router/LAN?
A:http://eathena.deltaanime.net/forum/viewtopic.php?t=10

Q: How can I reprogram the server?
A: First learn C/C++ http://cplusplus.com, secondly go to this thread and read how to compile the server using cygwin http://eathena.deltaanime.net/forum/viewtopic.php?t=192. (There is no current guide to compiling the SQL version (This guide's version) on cygwin, I'm still trying to figure out myself how to install the MySQL API for GCC on cygwin)

Q: How can I make a patch server like Gravity has for the ragnarok clients?
A: http://eathena.deltaanime.net/forum/viewtopic.php?t=381

Q: How can I edit my server settings like experience rates and pet info?
A: Look in your C:\athenasql\conf\map_athena.conf file and configure your server accordingly. There are some threads on the forums about editing this, just search.

Q: How can I edit NPCs?
A: There are MANY threads on this in this forum, just search.

Q: How come map and character server aren't booting up properly, they just get some packet (6) error thing?
A: Check to see if the ID: 0 Username: s1 Password: p1 is in the login table on your ragnarok database, then check to make sure your configs are configured with that in them! (C:\athenasql\conf\*.conf)

Q: How come when I start the server using the eAthena Admin program, the servers never start up right?
A: Go to start > run > 'cmd' > "enter" > cd to your c:\athenasql\ folder > run each server this way and debug it. They will just close if you execute the server and they crash.

Q: I don't have Windows (NT/2K/XP/2003/.NET) what do I do?
A: Go pirate it or buy it !

Q: I don't know how to use DOS/Cygwin commands to get to my server/use cygwin!!!
A: Search google for that, I can't believe people these days don't know how to use their operating system's consoles anymore -.-

Q: How come I get errors when I try execute my SQL script?
A: If you're trying to execute those .sql files in your C:\athenasql\sql\ folder and they aren't working, try to debug them, it should be a bit obvious how it's structured, if there are commented lines and there is random gibberish before it on the same line, it probably doesn’t belong or something. If all else fails search/post in the support forum!

Q: What kind of system/connection/OS do I need to run a server?
A: Here's a small grouping:
-Bare minimum: 500Mhz, 256MB PC-100
-Recommended: 800MHz+,512MB PC-133
-Performance: 1GHz+,512MB+ PC-133
+All systems need to be running an NT version of Windows (NT/2K/XP/2003)
+You should have a dedicated line such as Cable/DSL/T1/T3/OC-# with at least 128KBPS upload, that should give you support of maybe 20-50 users depending on how much you actually get of the 128KBPS.

Q: How can I find my IP address info?
A: Go to Start > Run > type in 'cmd' > hit enter > type in 'ipconfig' > hit enter. That is your IP address, subnet mask, and gateway (which you aren't to concerned about right now).

-To calculate your subnet, this is really simple; compare your IP address to your subnet mask. As you can see there are 4 octets (x.x.x.x) in the IP, for every place there is a 255 in the subnet, it means that the value in the IP address is salvaged. Say I have 1xx.xx8.1.2 as my IP, subnet mask 2xx.xx5.255.0. So 1xx.xx8.1. is salvaged, then I would just add a 0 for the places that were 0's in the subnet(1xx.xx8.1.0).

-This is as layman’s as I can get for you, if you start bumping in to other subnet masks like say a 2xx.xx5.2xx.xx2, then you're dealing with VLSM(A whole other deal). IM me if you need some Subnet/VLSM help!

Q: How come when I go to import my items database, it tells me that there is an error, something about Jname and red_potion?
A: Go to your ragnarok database, open your item_db table, edit the table column that says Name2 and change that field to Jname.

Q: When I go to the Control Center on the MySQL server, it doesn't show an account ragnarok@localhost, just ragnarok@%!
A: Just manually make one then, right click on user admin in the Control Center, select create new user. Put in localhost for the host, ragnarok for the username and password, check the box next to the ragnarok database, highlight the ragnarok database, click the all privileges button, then just apply it and close.

Q: I use Windows XP Home edition and I can't find mysql under services!
A: Here's the way to do it on XP Home:
1) Start->Run
2) type "cmd", enter
3) type this "C:\mysql\bin\mysqld --install-manual" and press enter
4) try the steps on the top again



-If none of these answer your questions, maybe try this FAQ page:
http://www.yuu-kun.com/eathena/guide_faq.php. If that doesn't either, then search/post in the forums!

Credits
================================================== ====================

Tutorial written souly by: Conrad
FAQ question ideas: Conrad, yuu-kun.com, and these forums

Thank you for reading my little eAthena SQL installation guide! =)

Thanks for this great community and support of open source software, programmers, and helpful people!

-If there is some info missing, please let me know, I will post fixes and I will add more later. As well, I am hoping to put together an eAthena SQL Cygwin compilation guide once I figure out how the heck to get the MySQL API installed on Cygwin! (Help?) I hope I get a sticky for this! !
_________________
-Conrad
Digital is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:21.