antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
kikoocunha

Problema Vb E Mysql .[Ajuda]

Question

Boas pessoal , é o seguinte, eu ontem, deparei-me com este "erro" no virtual box, e depois o servidor não liga (o channel nao fica online) :

Imagem colocada

Depois , fui ao navicat , porque chegou a uma altura que dava Connection Refused , mas depois já não dava, mas pronto, fui a reparar algumas tabelas do navicat e deparo-me com isto :

Imagem colocada

Depois este na tabela mysql:

Imagem colocada

E aqui está o que aparece no syserr:

" SYSERR: Jul 15 19:02:28 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7
SYSERR: Jul 15 19:38:44 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'
query: UPDATE account SET last_play=NOW() WHERE id=7
SYSERR: Jul 15 19:39:53 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'
query: UPDATE account SET last_play=NOW() WHERE id=7
SYSERR: Jul 15 19:40:47 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'
query: UPDATE account SET last_play=NOW() WHERE id=7
SYSERR: Jul 15 19:42:26 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'
query: UPDATE account SET last_play=NOW() WHERE id=7
SYSERR: Jul 15 19:43:28 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'
query: UPDATE account SET last_play=NOW() WHERE id=7
SYSERR: Jul 15 19:44:21 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'
query: UPDATE account SET last_play=NOW() WHERE id=7
SYSERR: Jul 15 19:47:07 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Jul 15 19:50:27 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'
query: UPDATE account SET last_play=NOW() WHERE id=7 "

Se alguém me conseguir ajudar sff .
É que acho qe foi depois de meter a query dum MOOB , mas depois cheguei a eliminar a query e a linha do mob_proto no navicat :/

Obrigado

Share this post


Link to post
Share on other sites

14 answers to this question

antiblock
Elveron
  • 0

Meches-te no quê antes de dar esses erros todos?

Exprimentar ver o Syserr a ver o que diz...

Share this post


Link to post
Share on other sites
  • 0

Meches-te no quê antes de dar esses erros todos?

Exprimentar ver o Syserr a ver o que diz...

Yha, tá ai o que aparece no syserr . eu já nao mexia no servidor há 1 mes para ai , e resolvi ir lá dia 15 julho , dia 14. dia 14 nao deu erro , nenhum ,foi no dia 15 que apareceram esses erros no syserr

SYSERR: Jul 15 19:02:28 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7

SYSERR: Jul 15 19:38:44 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7

SYSERR: Jul 15 19:39:53 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7

SYSERR: Jul 15 19:40:47 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7

SYSERR: Jul 15 19:42:26 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7

SYSERR: Jul 15 19:43:28 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7

SYSERR: Jul 15 19:44:21 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7

SYSERR: Jul 15 19:47:07 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.

SYSERR: Jul 15 19:50:27 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7 "

E a unica razão que vejo para ter dado erro , foi uma query que pus, mas ja foi removida.

Share this post


Link to post
Share on other sites
  • 0

O syserr dis tudo, quem preceber minimamente inglês precebe o que tá ai <.<

SYSERR: Jul 15 19:02:28 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

Unknown column 'last_play

-> Não foi encontrada a coluna "last_play"

O próprio erro até te dá a solução, a query para adicionares a coluna...

UPDATE account SET last_play=NOW() WHERE id=7

Share this post


Link to post
Share on other sites
  • 0

SNiK, o syser realmente diz o erro (a tabela account, não tem a coluna "last_play"), mas não lhe dá a solução LOL.Hás de me dizer desde quando que um UPDATE adiciona uma coluna :facepalm:

Share this post


Link to post
Share on other sites
  • 0

O syserr dis tudo, quem preceber minimamente inglês precebe o que tá ai <.<

SYSERR: Jul 15 19:02:28 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

Unknown column 'last_play

-> Não foi encontrada a coluna "last_play"

O próprio erro até te dá a solução, a query para adicionares a coluna...

UPDATE account SET last_play=NOW() WHERE id=7

Pois, continuo sem perceber o que fazer para conseguir ligar o servidor mesmo ;/ . Servermodding não é bem a minha área <,< mas pronto , faço o que posso . Se me disseres o que fazer então, agradecia sf :D

Share this post


Link to post
Share on other sites
  • 0

Um UPDATE nunca adiciona uma coluna a uma tabela :facepalm:

Executa esta query a ver:

DROP TABLE IF EXISTS `player`;
CREATE TABLE `player` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `account_id` int(11) NOT NULL DEFAULT '0',
 `name` varchar(24) NOT NULL DEFAULT 'NONAME',
 `job` tinyint(2) unsigned NOT NULL DEFAULT '0',
 `voice` tinyint(1) unsigned NOT NULL DEFAULT '0',
 `dir` tinyint(2) NOT NULL DEFAULT '0',
 `x` int(11) NOT NULL DEFAULT '0',
 `y` int(11) NOT NULL DEFAULT '0',
 `z` int(11) NOT NULL DEFAULT '0',
 `map_index` int(11) NOT NULL DEFAULT '0',
 `exit_x` int(11) NOT NULL DEFAULT '0',
 `exit_y` int(11) NOT NULL DEFAULT '0',
 `exit_map_index` int(11) NOT NULL DEFAULT '0',
 `hp` smallint(4) NOT NULL DEFAULT '0',
 `mp` smallint(4) NOT NULL DEFAULT '0',
 `stamina` smallint(6) NOT NULL DEFAULT '0',
 `random_hp` smallint(5) unsigned NOT NULL DEFAULT '0',
 `random_sp` smallint(5) unsigned NOT NULL DEFAULT '0',
 `playtime` int(11) NOT NULL DEFAULT '0',
 `level` tinyint(2) unsigned NOT NULL DEFAULT '1',
 `level_step` tinyint(1) NOT NULL DEFAULT '0',
 `st` smallint(3) NOT NULL DEFAULT '0',
 `ht` smallint(3) NOT NULL DEFAULT '0',
 `dx` smallint(3) NOT NULL DEFAULT '0',
 `iq` smallint(3) NOT NULL DEFAULT '0',
 `exp` int(11) NOT NULL DEFAULT '0',
 `gold` int(11) NOT NULL DEFAULT '0',
 `stat_point` smallint(3) NOT NULL DEFAULT '0',
 `skill_point` smallint(3) NOT NULL DEFAULT '0',
 `quickslot` tinyblob,
 `ip` varchar(15) DEFAULT '0.0.0.0',
 `part_main` smallint(6) unsigned NOT NULL DEFAULT '0',
 `part_base` tinyint(4) NOT NULL DEFAULT '0',
 `part_hair` smallint(4) NOT NULL DEFAULT '0',
 `skill_group` tinyint(4) NOT NULL DEFAULT '0',
 `skill_level` blob,
 `alignment` int(11) NOT NULL DEFAULT '0',
 `last_play` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `change_name` tinyint(1) NOT NULL DEFAULT '0',
 `mobile` varchar(24) DEFAULT NULL,
 `sub_skill_point` smallint(3) NOT NULL DEFAULT '0',
 `stat_reset_count` tinyint(4) NOT NULL DEFAULT '0',
 `horse_hp` smallint(4) NOT NULL DEFAULT '0',
 `horse_stamina` smallint(4) NOT NULL DEFAULT '0',
 `horse_level` tinyint(2) unsigned NOT NULL DEFAULT '0',
 `horse_hp_droptime` int(10) unsigned NOT NULL DEFAULT '0',
 `horse_riding` tinyint(1) NOT NULL DEFAULT '0',
 `horse_skill_point` smallint(3) NOT NULL DEFAULT '0',
 PRIMARY KEY (`id`),
 KEY `account_id_idx` (`account_id`),
 KEY `name_idx` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=57740 DEFAULT CHARSET=latin1;

Share this post


Link to post
Share on other sites
  • 0

Isso não cria o campo que ele deveria ter la..

Vai a account -> account -> Editar Tabela -> adiciona um campo chamado last_play como datetime 0 de lenght

e guarda, depois vai dar.

Share this post


Link to post
Share on other sites
  • 0

Um UPDATE nunca adiciona uma coluna a uma tabela :facepalm:

Executa esta query a ver:

DROP TABLE IF EXISTS `player`;
CREATE TABLE `player` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `account_id` int(11) NOT NULL DEFAULT '0',
 `name` varchar(24) NOT NULL DEFAULT 'NONAME',
 `job` tinyint(2) unsigned NOT NULL DEFAULT '0',
 `voice` tinyint(1) unsigned NOT NULL DEFAULT '0',
 `dir` tinyint(2) NOT NULL DEFAULT '0',
 `x` int(11) NOT NULL DEFAULT '0',
 `y` int(11) NOT NULL DEFAULT '0',
 `z` int(11) NOT NULL DEFAULT '0',
 `map_index` int(11) NOT NULL DEFAULT '0',
 `exit_x` int(11) NOT NULL DEFAULT '0',
 `exit_y` int(11) NOT NULL DEFAULT '0',
 `exit_map_index` int(11) NOT NULL DEFAULT '0',
 `hp` smallint(4) NOT NULL DEFAULT '0',
 `mp` smallint(4) NOT NULL DEFAULT '0',
 `stamina` smallint(6) NOT NULL DEFAULT '0',
 `random_hp` smallint(5) unsigned NOT NULL DEFAULT '0',
 `random_sp` smallint(5) unsigned NOT NULL DEFAULT '0',
 `playtime` int(11) NOT NULL DEFAULT '0',
 `level` tinyint(2) unsigned NOT NULL DEFAULT '1',
 `level_step` tinyint(1) NOT NULL DEFAULT '0',
 `st` smallint(3) NOT NULL DEFAULT '0',
 `ht` smallint(3) NOT NULL DEFAULT '0',
 `dx` smallint(3) NOT NULL DEFAULT '0',
 `iq` smallint(3) NOT NULL DEFAULT '0',
 `exp` int(11) NOT NULL DEFAULT '0',
 `gold` int(11) NOT NULL DEFAULT '0',
 `stat_point` smallint(3) NOT NULL DEFAULT '0',
 `skill_point` smallint(3) NOT NULL DEFAULT '0',
 `quickslot` tinyblob,
 `ip` varchar(15) DEFAULT '0.0.0.0',
 `part_main` smallint(6) unsigned NOT NULL DEFAULT '0',
 `part_base` tinyint(4) NOT NULL DEFAULT '0',
 `part_hair` smallint(4) NOT NULL DEFAULT '0',
 `skill_group` tinyint(4) NOT NULL DEFAULT '0',
 `skill_level` blob,
 `alignment` int(11) NOT NULL DEFAULT '0',
 `last_play` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `change_name` tinyint(1) NOT NULL DEFAULT '0',
 `mobile` varchar(24) DEFAULT NULL,
 `sub_skill_point` smallint(3) NOT NULL DEFAULT '0',
 `stat_reset_count` tinyint(4) NOT NULL DEFAULT '0',
 `horse_hp` smallint(4) NOT NULL DEFAULT '0',
 `horse_stamina` smallint(4) NOT NULL DEFAULT '0',
 `horse_level` tinyint(2) unsigned NOT NULL DEFAULT '0',
 `horse_hp_droptime` int(10) unsigned NOT NULL DEFAULT '0',
 `horse_riding` tinyint(1) NOT NULL DEFAULT '0',
 `horse_skill_point` smallint(3) NOT NULL DEFAULT '0',
 PRIMARY KEY (`id`),
 KEY `account_id_idx` (`account_id`),
 KEY `name_idx` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=57740 DEFAULT CHARSET=latin1;

Isso não cria o campo que ele deveria ter la..

Vai a account -&--#62; account -&--#62; Editar Tabela -&--#62; adiciona um campo chamado last_play como datetime 0 de lenght

e guarda, depois vai dar.

Obrigado, vou testar os 2 e já digo algo :)

EDIIT: NewWars, não resultou , o servidor continua a ficar offline :/

EDIT: PACIFICADOR , a query foi executada , dei reboot , e depois deu 1 "Connection refused" e continuou a não dar . depois fui a reparar as tabelas, e dá os mesmos erros que nos prints acima ;/

Fui agora ao syserr e este erro já foi resolvido "SYSERR: Jul 16 16:11:02 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7"

Obrigado, mas continuo a não perceber porqe é qe o sv ainda nao dá :/ e nao apareceu + nd . eu acho qe tem a ver com aquilo que está no print do Virtual box.

Share this post


Link to post
Share on other sites
  • 0

Obrigado, vou testar os 2 e já digo algo :)

EDIIT: NewWars, não resultou , o servidor continua a ficar offline :/

EDIT: PACIFICADOR , a query foi executada , dei reboot , e depois deu 1 "Connection refused" e continuou a não dar . depois fui a reparar as tabelas, e dá os mesmos erros que nos prints acima ;/

Fui agora ao syserr e este erro já foi resolvido "SYSERR: Jul 16 16:11:02 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Unknown column 'last_play' in 'field list'

query: UPDATE account SET last_play=NOW() WHERE id=7"

Obrigado, mas continuo a não perceber porqe é qe o sv ainda nao dá :/ e nao apareceu + nd . eu acho qe tem a ver com aquilo que está no print do Virtual box.

Sim o erro do last_play resolveu-se porque tava em falta e eu te falei como adicionalo...

Agora se não dá, não sei, revê o que tiveste a fazer antes.

Share this post


Link to post
Share on other sites
  • 0

Sim o erro do last_play resolveu-se porque tava em falta e eu te falei como adicionalo...

Agora se não dá, não sei, revê o que tiveste a fazer antes.

pois ;/ obrigado :D

Share this post


Link to post
Share on other sites
  • 0

Complicão tanta cena para nada .Ora lá .Faz o seguinte .Vái a tabela account . cria 1 tabela a dizer last_playcom datetime 7 . e lengh 7 .Irás ver se não irá dar . Se não der diz que tenho outra solução .

Share this post


Link to post
Share on other sites
  • 0

Complicão tanta cena para nada .Ora lá .Faz o seguinte .Vái a tabela account .cria 1 tabela a dizer last_playcom datetime 7 . e lengh 7 .Irás ver se não irá dar . Se não der diz que tenho outra solução .

Em relação à last_play já tá resolvido

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this