![]() |
|
|
#2 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
c) xampp / mysql
1. well this is the point where i recommend you using xampp. however they just upgraded it to version 1.5, adding mysql 5.0. since we want to avoid compability issues (neither do I know whether they will occur nor do i promise that they wont) i advise you to use the older version which has mysql 4.1. you can grab it over here 2. get mysql administrator here 3. get the mysql control center here 4. install all those tools in the same order as you downloaded em. NOTE (regarding the xampp installation): make sure you are running mysql as a service (maybe apache as well if you want to host a website) d) mysql administrator 1. fire up mysql admin, configure it to look like this and press ok. Note: atm you dont have a pass. but we are going to change that soon ![]() 2. in mysql admin go to 'User Administration' then click on the root user and enter a pass you like. if you like you can use the same as the one you replaced p1 with (recommended). i advise you not to use ragnarok, ro, test or other stupid passwords as it would be easy to hack your db then. In the end hit 'apply changes'. so heres a pic of how it should look like ![]() 3. now hit 'New User' and enter this info: ----------------------------- MySQL User: ragnarok Password: *use the same as for the root account if you like to* Confirm Password: *use the same as for the root account if you like to* ----------------------------- when you are done click 'Apply Changes' and exit mysql administrator. Off to get a coffee… its late here XD Well im back ^_^ So lets continue… e) mysql control center 1. go start it. 2. you will need to register a server on the first startup. So enter: --------------------------- Name: ragnarok Host Name: localhost User Name: root Password: *the pass you specified for root* --------------------------- 3. now your screen should look like this: ![]() 4. right-click 'Databases' and choose 'New Database'. call it ragnarok and press ok. then add a second database called log. 5. right-click the ragnarok database and choose 'Connect'. after that do the same for the log database. 6. highlight the ragnarok database by clicking on it once. then hit the sql button, this will open a query window… now select 'file --> open' and point it to your main.sql file. Its located in the sql-files folder of your athena folder. now you should see a red ! yeah i know... i said even dumbasses should be able to do it. so heres the picture ![]() ![]() 7. now do the same for db_tables.sql, item_db.sql, mob_db.sql, mail.sql and the last uhm… lets say 5 uprade.sql files, just to be sure everything will work as its supposed to. remember that its important to execute the files in the same order as i told you. close the query window 8. now highlight the log database and open the sql query window again; (this time it interacts with the log database. thats why we needed to close it.) now execute log.sql … you will end up having a database that will be flooded with thousands of entries as soon as you get some players on your server. have fun cleaning it lol ![]() 9. disconnect. i mean both databases then reconnect to the ragnarok one, this is for refreshing the tables. now you should see sth like this: ![]() double-click on the login entry. For security reasons I cant show you the next image as the passes aren’t encrypted lol… but you should see 15 server accounts from 1-15 but only the first one (account_id 1) is of interest for us. to change something just double-click the cell you want to edit. change userid: s1 and user_pass: p1, to suit the userid and user_pass you specified in char_athena.conf and map_athena.conf. to save your entries just click another cell. now we are going to add a GM account ^_~. right-click within login table to bring up a meny and choose 'Insert Record'. enter 704554 or any higher number as your account_id. Now choose your user_id (thats the user name) and user_pass (thats the password), so this is the info you are going to use to log in. sex, obviously, is for gender. ----------------- M = Male F = Female S = Server ---------------- enter your email in the email column if you want to be able to delete characters. dont forget to change your level... make it 99 for unrestricted administrator rights. once again make sure to save your changes. then click X to close the login table. scroll down till you see 'User Administration'. Now click the plus (+) next to it… you should see a list of all users including ragnarok@localhost. right-click it and choose 'Edit User'. now this fill in... --------------------------- Username: ragnarok Host: localhost Password: *the same as you used for root* --------------------------- choose the privileges as shown in the picture ![]() woot! you did. who is da man? i am da man ![]() lol have fun and cya around and im still searching for mirrors... if you find any bugs or want please feel free to post em as well as any suggestions. about my english: english isnt my mother tongue and i wrote this guide in a few mins, so there might be mistakes in it. if theres any american/british or canadian guy around who would like to correct me catch me on irc/msn or icq...
|
|
|
|
|