Jump to content
  • 0

item_db.sql


patr3k

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  257
  • Reputation:   7
  • Joined:  03/12/12
  • Last Seen:  

How can i update my item_db.sql in my phpmysql if there's changeset in item_db.sql from rAthena?

Edited by patr3k
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

You just take the snippet of what was changed in item_db_sql (ONLY SNIPPET OF THE ITEM THAT WAS CHANGED) and then run it in your PHPAdmin. If you load the entire item_db_sql instead of the snippet of the item that was changed, you would run the risk of losing any custom changes you've done to any other items.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  257
  • Reputation:   7
  • Joined:  03/12/12
  • Last Seen:  

what do you mean by snippet? can you give me an example how to do it or a guide. Thank you in advance.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

He means take a look at sql_files/update_svn...sql

Usually when the db change they put those files as a query to execute to do the change.

For exemple lastest I got is upgrade_svn16518.sql, if I open phpmyadmin (or any other mysql client) connect to my db and execute the query in that file, my db will be updated for the change in r16518.

(in this exemple it'll add colum favorite to my inventory table).

Otherwise if you don't know when that happen but know the change you could just create a query to apply them.

like :

REPLACE INTO `item_db_re` VALUES (19513,'Chicken_Bill','Chicken Bill',5,NULL,NULL,0,NULL,NULL,NULL,NULL,0xFFFFFFFF,7,2,4096,NULL,1,NULL,699,NULL,NULL,NULL);

Wich will update the item 19153. Hope you got it =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  257
  • Reputation:   7
  • Joined:  03/12/12
  • Last Seen:  

in myphpadmin:

Use tables: do i have to select item_db_re?

SQL query on database ragnarok: ( i insert this in the text box?)

REPLACE INTO `item_db_re` VALUES (19513,'Chicken_Bill','Chicken Bill',5,NULL,NULL,0,NULL,NULL,NULL,NULL,0xFFFFFFFF,7,2,4096,NULL,1,NULL,699,NULL,NULL,NULL);

then submit query?

Edited by patr3k
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

You don't have to select the table, it's already set in the query, and yes it's in sql query that you copy past this.

But it's only an exemple I don't know wich item was change you just need to grep those line and do it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  257
  • Reputation:   7
  • Joined:  03/12/12
  • Last Seen:  

okay got it! Thanks a lot! /no1

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...