Jump to content
  • 0
Sign in to follow this  
Diconfrost VaNz

[Guide]How to setup a Ragnarok Online(Server Side Only)

Question

Download these files first:

MySQL Gui Tools

MySQL Essentials

Download Compiled SVN here(I suggest to use trunk)

When you're done downloading those files, follow these steps:

==========// SVN Files Setup //==========

1) Goto your downloaded svn and extract it.

2) Goto conf folder and look for char_athena.txt, inter_athena.txt, map_athena.txt and subnet_athena.txt

3) Open char_athena.txt, and map_athena.txt and look for this:



 

// Server Communication username and password.userid: s1passwd: p1 

 


and change that into



 

// Server Communication username and password.userid: ragnarokpasswd: ragnarok 

 


2) Open your char_athena.txt again and look for this:



 

// Login Server IP// The character server connects to the login server using this IP address.// NOTE: This is useful when you are running behind a firewall or are on// a machine with multiple interfaces.//login_ip: 127.0.0.1// The character server listens on the interface with this IP address.// NOTE: This allows you to run multiple servers on multiple interfaces// while using the same ports for each server.//bind_ip: 127.0.0.1// Login Server Portlogin_port: 6900// Character Server IP// The IP address which clients will use to connect.// Set this to what your server's public IP address is.//char_ip: 127.0.0.1remove the "//" in login_ip and char_ip. It will look like this:// Login Server IP// The character server connects to the login server using this IP address.// NOTE: This is useful when you are running behind a firewall or are on// a machine with multiple interfaces.login_ip: 127.0.0.1// The character server listens on the interface with this IP address.// NOTE: This allows you to run multiple servers on multiple interfaces// while using the same ports for each server.//bind_ip: 127.0.0.1// Login Server Portlogin_port: 6900// Character Server IP// The IP address which clients will use to connect.// Set this to what your server's public IP address is.char_ip: 127.0.0.1 

 


3) Open your inter_athena.txt and look for this:



 

// Global SQL settings// overriden by local settings when the hostname is defined there// (currently only the login-server reads/obeys these settings)sql.db_hostname: 127.0.0.1sql.db_port: 3306sql.db_username: ragnaroksql.db_password: ragnaroksql.db_database: ragnaroksql.codepage:// MySQL Character SQL serverchar_server_ip: 127.0.0.1char_server_port: 3306char_server_id: ragnarokchar_server_pw:ragnarokchar_server_db: ragnarok// MySQL Map SQL Servermap_server_ip: 127.0.0.1map_server_port: 3306map_server_id: ragnarokmap_server_pw: ragnarokmap_server_db: ragnarok// MySQL Log SQL Databaselog_db_ip: 127.0.0.1log_db_port: 3306log_db_id: ragnaroklog_db_pw: ragnaroklog_db_db: loglog_codepage: 

 


if you're using my guide that is a given and you don't need to edit them. But if you're planning to change any of here like the user password or what, you need to change this too.

4) Open your map_athena.txt and look for this:




 

// Character Server IP// The map server connects to the character server using this IP address.// NOTE: This is useful when you are running behind a firewall or are on// a machine with multiple interfaces.//char_ip: 127.0.0.1// The map server listens on the interface with this IP address.// NOTE: This allows you to run multiple servers on multiple interfaces// while using the same ports for each server.//bind_ip: 127.0.0.1// Character Server Portchar_port: 6121// Map Server IP// The IP address which clients will use to connect.// Set this to what your server's public IP address is.//map_ip: 127.0.0.1// Map Server Portmap_port: 5121remove "//" in char_ip, and map_ip, it will look like this:// Character Server IP// The map server connects to the character server using this IP address.// NOTE: This is useful when you are running behind a firewall or are on// a machine with multiple interfaces.char_ip: 127.0.0.1// The map server listens on the interface with this IP address.// NOTE: This allows you to run multiple servers on multiple interfaces// while using the same ports for each server.//bind_ip: 127.0.0.1// Character Server Portchar_port: 6121// Map Server IP// The IP address which clients will use to connect.// Set this to what your server's public IP address is.map_ip: 127.0.0.1// Map Server Portmap_port: 5121 

 


5) Open you subnet_athena.txt and you'll see this:



 

subnet: 255.0.0.0:127.0.0.1:127.0.0.1 

 


If you changed the ips in char_athena.txt, inter_athena.txt and map_athena.txt, you should consider to put them here too.

for example, the ip is 125.60.252.169


 

subnet: 255.0.0.0:125.60.252.169:125.60.252.169 

 


==========// MySQL Setup //==========

1) Install MySQL Gui Tools

2) Install MySQL Essentials. Choose MySQL 501. Enter "ragnarok" for the password for "root"(remember you can change this later on, this is just a basic one). Just click the Execute and when done, just click Finish. Go to Task Manager and check if mysqld-nt.exe is running in processes although it's not necessary if no error occured during installation.

3) Start MySQL Query nd it will prompt up a window. Fill in



 

Stored Connection: (leave it blank)Server Host: localhost					  Port: 3306Username: rootPassword: (remember the password you made when you're installing MySQL Essentials?put it here)Default Schema: ragnarok(you can change this afterwards, this is just a basic name) 

 

and leave other field as it is but to make sure everything is correct. Then press enter.

4) *When you are in MySQL Query Browser, click once on ragnarok database that is below Schemata.
*Go to menu, click File and choose Open Script...
*We need to execute main.sql, mail.sql and log.sql (execute upgrade_svn* .sql files, too, if require) so, look for the main.sql, which should be in sql-files folder in eAthena Server and other .sql files.
*Pick main.sql and click Open.
*Click the Green Execute Icon to the upper right to execute. Do the same with mail.sql now and execute it.
*When you are done, we need to create log database by right-click somewhere within the table where the databases are and choose Create New Schema and type in log and click OK.
*Double-click on log database, go to menu, click File, choose Open Script..., open logs.sql and Execute.
*Double click ragnarok database to expand to see all tables.
*Look for login table and double click and double click again.
*Click once on Edit so, we can edit the cells. This icon should be in bottom.
*For userid: and user_pass:, type in the name that you used in char_athena.conf and map_athena.conf.
*When you are done editing, just click the Apply Changes that is next to the Edit icon.

5) Goto MySQL Administrator. Login there.



 

Stored Connection: (leave it blank)Server Host: localhost					  Port: 3306Username: rootPassword: (remember the password you made when you're installing MySQL Essentials?put it here)  

 

Then Enter.

6) And you're inside the MySQL Administrator now. Go to User Administration and Click New User and enter this:



 

MySQL User: ragnarokPassword: ragnarokConfirm Password: ragnarok 

 

then click "Apply Changes".

After that, Click the ragnarok user and goto schema priviledges(right-side of user information). Click ragnarok and log database and click "<<", then click "Apply Changes"

And we're done smile.png 

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Looks nice, though, one thing I should point out. We've dropped any _athena suffixes in this update. To make your topic more accurate, I recommend changing the _athena suffixes as well :P

Share this post


Link to post
Share on other sites
  • 0

Any update on this? Hercules emulator are already in public and one thing, i suggest you make a guide regarding the MySQL Workbench framework not this one. Because it is more updated compare to those sql tools and for me it is more convenient and easy.

Edited by Patskie

Share this post


Link to post
Share on other sites
  • 0

Any update on this? Hercules emulator are already in public and one thing, i suggest you make a guide regarding the MySQL Workbench framework not this one. Because it is more updated compare to those sql tools and for me it is more convenient and easy.

It's nice if you would provide your OWN guide, probably this thread won't UPDATE anymore.

:meow:

Share this post


Link to post
Share on other sites
  • 0

 

Any update on this? Hercules emulator are already in public and one thing, i suggest you make a guide regarding the MySQL Workbench framework not this one. Because it is more updated compare to those sql tools and for me it is more convenient and easy.

It's nice if you would provide your OWN guide, probably this thread won't UPDATE anymore.

:meow:

I will :meow:

Share this post


Link to post
Share on other sites
  • 0

You can change it from your MySQL User Administration. Go to User Administration Edit the User to your desired settings.

MySQL User: ragnarokPassword: ragnarokConfirm Password: ragnarok 
Edited by madkilah28

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.