HU

Erro Mysql Database

Por Hudsin, 18 de mar. de 2011 em Archived

otserv
tibia
24
3.4k
Henrique MouraH
20 de março de 2011 às 22:27

É por que você não criou as tabelas do webshop do gesior. Execute:

(Não esqueça de fazer backup da database caso algo dê errado.)

 

 

 

CREATE TABLE `z_ots_comunication` (
 `id` int(11) NOT NULL auto_increment,
 `name` varchar(255) NOT NULL,
 `type` varchar(255) NOT NULL,
 `action` varchar(255) NOT NULL,
 `param1` varchar(255) NOT NULL,
 `param2` varchar(255) NOT NULL,
 `param3` varchar(255) NOT NULL,
 `param4` varchar(255) NOT NULL,
 `param5` varchar(255) NOT NULL,
 `param6` varchar(255) NOT NULL,
 `param7` varchar(255) NOT NULL,
 `delete_it` int(2) NOT NULL default '1',
 PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;  

 

 

CREATE TABLE `z_shop_offer` (
 `id` int(11) NOT NULL auto_increment,
 `points` int(11) NOT NULL default '0',
 `itemid1` int(11) NOT NULL default '0',
 `count1` int(11) NOT NULL default '0',
 `itemid2` int(11) NOT NULL default '0',
 `count2` int(11) NOT NULL default '0',
 `offer_type` varchar(255) default NULL,
 `offer_description` text NOT NULL,
 `offer_name` varchar(255) NOT NULL,
 PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;  

 

 

ALTER TABLE `accounts` ADD `premium_points` INT( 11 ) NOT NULL DEFAULT '0';  

 

 

CREATE TABLE `z_shop_history_item` (
 `id` int(11) NOT NULL auto_increment,
 `to_name` varchar(255) NOT NULL default '0',
 `to_account` int(11) NOT NULL default '0',
 `from_nick` varchar(255) NOT NULL,
 `from_account` int(11) NOT NULL default '0',
 `price` int(11) NOT NULL default '0',
 `offer_id` int(11) NOT NULL default '0',
 `trans_state` varchar(255) NOT NULL,
 `trans_start` int(11) NOT NULL default '0',
 `trans_real` int(11) NOT NULL default '0',
 PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;  

 

CREATE TABLE `z_shop_history_pacc` (
 `id` int(11) NOT NULL auto_increment,
 `to_name` varchar(255) NOT NULL default '0',
 `to_account` int(11) NOT NULL default '0',
 `from_nick` varchar(255) NOT NULL,
 `from_account` int(11) NOT NULL default '0',
 `price` int(11) NOT NULL default '0',
 `pacc_days` int(11) NOT NULL default '0',
 `trans_state` varchar(255) NOT NULL,
 `trans_start` int(11) NOT NULL default '0',
 `trans_real` int(11) NOT NULL default '0',
 PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1; 

 

 

HudsinH
20 de março de 2011 às 22:49

Eu ja tenho as tabelas criadas,tentei isso(apareceu duplicate...),continua com o erro :'(

 

 

 

 

O estranho é que,hora da um erro,hora da outro, hora da erro apenas depois q o ot está on depois de algum tempo

 

 

=/

Editado Março 20 por Hudsin

Henrique MouraH
20 de março de 2011 às 23:11

Posta ae o erro.. :p

HudsinH
20 de março de 2011 às 23:25

Coloquei o servidor online outra vez, irei obervar e aguardar '-'

 

 

=|

exlashE
21 de março de 2011 às 03:16

Cara eu estava com o mesmo erro, apenas coloque isso no seu config lua

 

mysqlReadTimeout = 5000

mysqlWriteTimeout = 5000

 

 

Vai funcionar direitinho!

HudsinH
22 de março de 2011 às 13:21

Pelo que vi,esses erros acontecem devido ao mysql desligar :/ no gerenciador n aparece o processo "mysql" mas no apache fica "running" ...

 

Então,pressuponho que isso faça o mysql reiniciar caso desligue?

 

obrigado.

 

 

- aff,agora o apache está pesando em uso de cpu, fica variando de 50% a 80% e o site fica lag, aff T.T

 

 

- testando aqui :D

Editado Março 22 por Hudsin

HudsinH
26 de março de 2011 às 22:21

Já consegui arrumar,formatei o pc do dedicado e reinstalei o xampp deu certo...

 

Talvez seja por ter várias versões do xampp instaladas ou algo do tipo,obrigado pela ajuda de todos!

dustotD
26 de março de 2011 às 22:54
Agora da esse errro qdo ovu logar no database...

tinha isso tmb, saiu com o tempo.

Asvezes da isso, mais ae é so fechar e abrir o server denovo.

Vlw

fsgF
27 de março de 2011 às 04:58

Dúvida Sanada!

Tópico movido para -> Dúvida Sanadas.