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
Colocou O Nome Correto Da Database Na Config.lua?
¿
execute esses comandos na sua database POR ORDEM.
1º
DROP TABLE poll_votes;
2º
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 ;
3º
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!
execute esses comandos na sua database POR ORDEM.
1º
DROP TABLE poll_votes;
2º
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 ;
3º
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+
Tópico movido para a seção de dúvidas e pedidos resolvidos.