Jump to content
  • 0

Please Help with Sql Base


qabakrall

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  09/10/14
  • Last Seen:  

Please help to correct the error:

: DB error - Unknown column 'vend_coin' in 'field list'

	[Debug]: at ..\src\map\vending.c:633 - SELECT `id`, `account_id`, `char_id`, `se

	x`, `title`, `body_direction`, `head_direction`, `sit`, `vend_coin` FROM `vendin

	gs` WHERE `autotrade` = 1 AND (SELECT COUNT(`vending_id`) FROM `vending_items` W

	HERE `vending_id` = `id`) > 0 ORDER BY `id`;


	CREATE TABLE IF NOT EXISTS `vendings` (

	  `id` int(10) unsigned NOT NULL,

	  `account_id` int(11) unsigned NOT NULL,

	  `char_id` int(10) unsigned NOT NULL,

	  `sex` enum('F','M') NOT NULL DEFAULT 'M',

	  `map` varchar(20) NOT NULL,

	  `x` smallint(5) unsigned NOT NULL,

	  `y` smallint(5) unsigned NOT NULL,

	  `title` varchar(80) NOT NULL,

	  `body_direction` CHAR( 1 ) NOT NULL DEFAULT '4',

	  `head_direction` CHAR( 1 ) NOT NULL DEFAULT '0',

	  `sit` CHAR( 1 ) NOT NULL DEFAULT '1',

	  `autotrade` tinyint(4) NOT NULL,

	  PRIMARY KEY (`id`)

	) ENGINE=MyISAM;
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

Try to add this on your SQL:

ALTER TABLE vendings ADD vend_coin VARCHAR(5) NOT NULL;

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  09/10/14
  • Last Seen:  

thank you so much!!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  09/10/14
  • Last Seen:  

Sorry but i have one error more, Please help mee

: DB error - Unknown column 'option_id0' in 'field list'
[Debug]: at ..\src\char\int_auction.c:223 - SELECT `auction_id`,`seller_id`,`sel
ler_name`,`buyer_id`,`buyer_name`,`price`,`buynow`,`hours`,`timestamp`,`nameid`,
`item_name`,`type`,`refine`,`attribute`,`unique_id`,`card0`,`card1`,`card2`,`car
d3`, `option_id0`, `option_val0`, `option_parm0`, `option_id1`, `option_val1`, `
option_parm1`, `option_id2`, `option_val2`, `option_parm2`, `option_id3`, `optio
n_val3`, `option_parm3`, `option_id4`, `option_val4`, `option_parm4` FROM `aucti
on` ORDER BY `auction_id` DESC
[Status]: Finished Reading GeoIP Database.
[Status]: Characters per Account: '0'.
[Info]: Start checking DB integrity
[SQL]: DB error - Unknown column 'hotkey_rowshift' in 'field list'
[Debug]: at ..\src\char\char.c:2992 - SELECT `char_id`,`account_id`,`char_num`,`
name`,`class`,`base_level`,`job_level`,`base_exp`,`job_exp`,`zeny`,`str`,`agi`,`
vit`,`int`,`dex`,`luk`,`max_hp`,`hp`,`max_sp`,`sp`,`status_point`,`skill_point`,
`option`,`karma`,`manner`,`party_id`,`guild_id`,`pet_id`,`homun_id`,`elemental_i
d`,`hair`,`hair_color`,`clothes_color`,`weapon`,`shield`,`head_top`,`head_mid`,`
head_bottom`,`robe`,`last_map`,`last_x`,`last_y`,`save_map`,`save_x`,`save_y`,`p
artner_id`,`online`,`father`,`mother`,`child`,`fame`,`rename`,`delete_date`,`mov
es`,`unban_time`,`font`,`sex`,`hotkey_rowshift` FROM `char` LIMIT 1;
[Fatal Error]: char : A tables is missing in sql-server, please fix it, see (sql
-files main.sql for structure)
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

Please upgrade your sql database using upgrade sql files in sql-files/upgrades

 

This particular error will be solved by upgrading using this file 

https://github.com/rathena/rathena/blob/master/sql-files/upgrades/upgrade_20160814.sql

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  09/10/14
  • Last Seen:  

Another Problem: I can not found in Updates this:

: DB error - Unknown column 'unique_id' in 'field list'
[Debug]: at ..\src\login\loginlog.c:94 - INSERT INTO `loginlog`(`time`,`ip`,`use
r`,`rcode`, `unique_id`,`log`) VALUES (NOW(), '0.0.0.0', 'login server', '100',
'0', 'login server started')
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

ALTER TABLE `loginlog` ADD COLUMN `unique_id` bigint(20) unsigned NOT NULL default '0';

 

 

please take a backup before you run it

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...