Database error

ViTiNhO145
em Websites

ViTiNhO145

ViTiNhO
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 03/11/10Posts: 115

Alguem poderia me ajudar com esse erro:

 

 

 

A Database Error Occurred

 

Error Number: 1146

Table 'otserv.poll_votes' doesn't exist

SELECT * FROM poll_votes WHERE answer_id = 0

paraoxtibia.png

Não sabe o quê é Elysium? Clique na imagem acima e descubra

Gostou? Rep+

WebTutoriais

Estudando Linux !
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 15/03/13Posts: 126Char no Tibia: No Have

Colocou O Nome Correto Da Database Na Config.lua?


¿

ViTiNhO145

ViTiNhO
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 03/11/10Posts: 115

Sim :c

paraoxtibia.png

Não sabe o quê é Elysium? Clique na imagem acima e descubra

Gostou? Rep+

tyuahoi

avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 24/02/08Posts: 177

execute esses comandos na sua database POR ORDEM.

 

 

DROP TABLE poll_votes;

 

 

CREATE TABLE IF NOT EXISTS `poll_votes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`answer_id` int(11) DEFAULT NULL,
`poll_id` int(11) DEFAULT NULL,
`account_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `poll_id` (`poll_id`),
KEY `account_id` (`account_id`),
KEY `answer_id` (`answer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

 

ALTER TABLE `poll_votes`
ADD CONSTRAINT `poll_votes_ibfk_1` FOREIGN KEY (`answer_id`) REFERENCES `poll_answer` (`id`),
ADD CONSTRAINT `poll_votes_ibfk_2` FOREIGN KEY (`poll_id`) REFERENCES `poll` (`id`),
ADD CONSTRAINT `poll_votes_ibfk_3` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`);

 

não esqueça, 1 por vez.

vamos viver, vadiar. o que importa é nossa alegria!

ViTiNhO145

ViTiNhO
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 03/11/10Posts: 115

execute esses comandos na sua database POR ORDEM.

 

 

DROP TABLE poll_votes;

 

 

CREATE TABLE IF NOT EXISTS `poll_votes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`answer_id` int(11) DEFAULT NULL,
`poll_id` int(11) DEFAULT NULL,
`account_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `poll_id` (`poll_id`),
KEY `account_id` (`account_id`),
KEY `answer_id` (`answer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

 

ALTER TABLE `poll_votes`
ADD CONSTRAINT `poll_votes_ibfk_1` FOREIGN KEY (`answer_id`) REFERENCES `poll_answer` (`id`),
ADD CONSTRAINT `poll_votes_ibfk_2` FOREIGN KEY (`poll_id`) REFERENCES `poll` (`id`),
ADD CONSTRAINT `poll_votes_ibfk_3` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`);

 

não esqueça, 1 por vez.

 

 

Muito obrigado funciono ^^ REP+

paraoxtibia.png

Não sabe o quê é Elysium? Clique na imagem acima e descubra

Gostou? Rep+

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Tópico movido para a seção de dúvidas e pedidos resolvidos.


Atenciosamente,
Eduardo Nunes - Scripter Lua!