SQLSTATE [42S02] : 기본 테이블 또는 뷰를 찾을 수 없음 : 1146 테이블 'desbest_full2.showdown_matches'새 마젠타 모듈을 사용한 후 : SQLSTATE [42S02] : 기본 테이블 또는 뷰를 찾을 수 없음 : 1146 테이블 XXX는
존재하지만 app/code/local/Desbest/Showdown/sql/Showdown_setup/mysql4-install-1.php
<?php
echo 'Running This Upgrade: '.get_class($this)."\n <br /> \n"; die("Exit for now");
$installer = $this;
/* @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */
$installer->startSetup();
$installer->run("
CREATE TABLE {$this->getTable('showdown_matches')} (
--CREATE TABLE IF NOT EXISTS `showdown_matches` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstproductid` int(11) NOT NULL,
`secondproductid` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`datenumber` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8_general_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `showdown_votes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`matchid` int(11) NOT NULL,
`votedfor` varchar(10) NOT NULL,
`ip` varchar(50) NOT NULL,
`datenumber` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8_general_ci AUTO_INCREMENT=1 ;
");
$installer->endSetup();
내부의 MySQL의 설치 스크립트를 가지고 있다면, 왜이 모듈은 내 원래 젠토 설치에서 일했다.
안녕 desbest, config.xml은 어떻게 생겼습니까? – ivantedja
여기 있습니다. https://gist.github.com/8a2da27d4f71834292f6 – desbest
주석 처리 된 회선이 작동합니까? - 'showdown_matches'가 존재하지 않으면 테이블을 만듭니다. 페이지를 새로 고친 후에도 오류 메시지가 나타나면 해결 했습니까? 오류가 계속 발생합니까? 그런 경우라면, 'local.com/errors/report.php?id = ....'-> 그게 문제가되는 경우 귀하의 URL을보십시오. 그것은 정적 인 페이지입니다. 나는 당신의 코드에 nothings이 틀린 것을 발견했다. – ivantedja