patr3k Posted August 14, 2012 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 257 Reputation: 7 Joined: 03/12/12 Last Seen: May 31, 2014 Share Posted August 14, 2012 (edited) How can i update my item_db.sql in my phpmysql if there's changeset in item_db.sql from rAthena? Edited August 14, 2012 by patr3k Quote Link to comment Share on other sites More sharing options...
Mystery Posted August 14, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted August 14, 2012 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. Quote Link to comment Share on other sites More sharing options...
patr3k Posted August 14, 2012 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 257 Reputation: 7 Joined: 03/12/12 Last Seen: May 31, 2014 Author Share Posted August 14, 2012 what do you mean by snippet? can you give me an example how to do it or a guide. Thank you in advance. Quote Link to comment Share on other sites More sharing options...
Lighta Posted August 14, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted August 14, 2012 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 =) Quote Link to comment Share on other sites More sharing options...
patr3k Posted August 14, 2012 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 257 Reputation: 7 Joined: 03/12/12 Last Seen: May 31, 2014 Author Share Posted August 14, 2012 (edited) 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 August 14, 2012 by patr3k Quote Link to comment Share on other sites More sharing options...
Lighta Posted August 14, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted August 14, 2012 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. Quote Link to comment Share on other sites More sharing options...
patr3k Posted August 14, 2012 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 257 Reputation: 7 Joined: 03/12/12 Last Seen: May 31, 2014 Author Share Posted August 14, 2012 okay got it! Thanks a lot! Quote Link to comment Share on other sites More sharing options...
Question
patr3k
How can i update my item_db.sql in my phpmysql if there's changeset in item_db.sql from rAthena?
Edited by patr3kLink to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.