Ir para conteúdo

Featured Replies

Postado
Estou tendo esse error ao ligar o server:
 
- MYSQL ERROR: Table 'servidor.player_statements' doesn't exist (1146)
 
 
Tentei usar esse comando no site:
 
CREATE TABLE `player_statements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `player_id` int(11) NOT NULL,
  `channel_id` int(11) NOT NULL DEFAULT '0',
  `text` varchar(255) NOT NULL,
  `date` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `player_id` (`player_id`),
  KEY `channel_id` (`channel_id`),
  CONSTRAINT `player_statements_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
 
Mas tive esse erro abaixo:
#1005 - Can't create table 'servidor.player_statements' (errno: 150)
Postado
4 horas atrás, roriscrave disse:
Estou tendo esse error ao ligar o server:
 
- MYSQL ERROR: Table 'servidor.player_statements' doesn't exist (1146)
 
 
Tentei usar esse comando no site:
 
CREATE TABLE `player_statements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `player_id` int(11) NOT NULL,
  `channel_id` int(11) NOT NULL DEFAULT '0',
  `text` varchar(255) NOT NULL,
  `date` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `player_id` (`player_id`),
  KEY `channel_id` (`channel_id`),
  CONSTRAINT `player_statements_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 
 
Mas tive esse erro abaixo:
#1005 - Can't create table 'servidor.player_statements' (errno: 150)

Veja se ja existe a tabela player_statements na sua base de dados.

Postado
5 minutos atrás, roriscrave disse:

 

no site? mysql?

nao, nao tem a tabela!

Vai no base de dados que você criou e depois clique em "SQL" e coloque esse codigo abaixo e executar

CREATE TABLE `player_statements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `player_id` int(11) NOT NULL,
  `channel_id` int(11) NOT NULL DEFAULT '0',
  `text` varchar(255) NOT NULL,
  `date` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `player_id` (`player_id`),
  KEY `channel_id` (`channel_id`),
  CONSTRAINT `player_statements_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

e veja se funcionou

Postado
  • Autor

q

2 minutos atrás, murilao disse:

Vai no base de dados que você criou e depois clique em "SQL" e coloque esse codigo abaixo e executar


CREATE TABLE `player_statements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `player_id` int(11) NOT NULL,
  `channel_id` int(11) NOT NULL DEFAULT '0',
  `text` varchar(255) NOT NULL,
  `date` bigint(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `player_id` (`player_id`),
  KEY `channel_id` (`channel_id`),
  CONSTRAINT `player_statements_ibfk_1` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

e veja se funcionou

como falei encima, quando coloco esse códio aparece o error :

#1005 - Can't create table 'servidor.player_statements' (errno: 150)

esse erro pode causar algum bug no server?

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