Ir para conteúdo

(Resolvido)[URGENTE] Player Não Salva Erro MYSQL [SOccorro ajuda]

Featured Replies

  • Respostas 7
  • Visualizações 1.6k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Executa esse comando na sua data base: DROP TABLE IF EXISTS `players`; CREATE TABLE `players` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `world_id` tinyint(4) unsign

  • Execute todos os comandos abaixo no seu phpmyadmin : ALTER TABLE `players` ADD `cast` VARCHAR(255) not null default ''; ... DROP TABLE IF EXISTS `bans`; CREATE TABLE `bans` ( `id` int(10) u

Postado

Aqui ensina como executar comandos na data base:

http://www.tibiaking.com/forum/topic/33611-tutorial-resolvendo-qualquer-erro-na-data-base/

 

@Edit: Acabei de lembrar que não tem ensinando no phpmyadmin. Basta fazer assim: Abra o phpmyadmin, selcione sua data base. Agora nas abas superiores onde tem Estrutura | SQL | Pesquisar | etc...

Clique em SQL e lá vc coloca o comando e aperta em executar.

Editado por danihcv (veja o histórico de edições)

  • 1 year later...
Postado
Em 06/01/2015 ás 00:01, Blackmotion disse:

Execute todos os comandos abaixo no seu phpmyadmin :


ALTER TABLE  `players` ADD  `cast` VARCHAR(255) not null default '';

...


DROP TABLE IF EXISTS `bans`; 
CREATE TABLE `bans` ( 
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 
  `type` tinyint(1) NOT NULL COMMENT '1 - ip banishment, 2 - namelock, 3 - account banishment, 4 - notation, 5 - deletion', 
  `value` int(10) unsigned NOT NULL COMMENT 'ip address (integer), player guid or account number', 
  `param` int(10) unsigned NOT NULL DEFAULT '4294967295' COMMENT 'used only for ip banishment mask (integer)', 
  `active` tinyint(1) NOT NULL DEFAULT '1', 
  `expires` int(11) NOT NULL, 
  `added` int(10) unsigned NOT NULL, 
  `admin_id` int(10) unsigned NOT NULL DEFAULT '0', 
  `comment` text NOT NULL, 
  `reason` int(10) unsigned NOT NULL DEFAULT '0', 
  `action` int(10) unsigned NOT NULL DEFAULT '0', 
  `statement` varchar(255) NOT NULL DEFAULT '', 
  PRIMARY KEY (`id`), 
  KEY `type` (`type`,`value`), 
  KEY `active` (`active`) 
) ENGINE=InnoDB DEFAULT CHARSET=latin1; 

...


DROP TABLE IF EXISTS `player_depotitems`; 
CREATE TABLE `player_depotitems` ( 
  `player_id` int(11) NOT NULL, 
  `sid` int(11) NOT NULL COMMENT 'any given range, eg. 0-100 is reserved for depot lockers and all above 100 will be normal items inside depots', 
  `pid` int(11) NOT NULL DEFAULT '0', 
  `itemtype` int(11) NOT NULL, 
  `count` int(11) NOT NULL DEFAULT '0', 
  `attributes` blob NOT NULL, 
  UNIQUE KEY `player_id_2` (`player_id`,`sid`), 
  KEY `player_id` (`player_id`), 
  CONSTRAINT `player_depotitems_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE 
) ENGINE=InnoDB DEFAULT CHARSET=latin1; 

Algumas pessoas conseguiram resolver o problema com esse método ^^

flw mano ajudo aki ;D rep +

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo