테이블이 없는데 왜 만들지 못하는것이죠? > 질문답변

본문 바로가기

사이트 내 전체검색

뒤로가기 질문답변

테이블이 없는데 왜 만들지 못하는것이죠?

본문

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=75162&sca=&sfl=wr_subject&stx=%C6%CB%BE%F7&sop=and
위 팝업을 만들려고 하는데요 이상하게 테이블이 만들어지지 않네요

sql파일을 실행을 하면
CREATE TABLE g4_popup ( `pop_id` int(11) NOT NULL auto_increment, `pop_title` varchar(255) collate utf8_general_ci NOT NULL default '', `pop_use` char(1) NOT NULL default '0', `start_date` varchar(255) collate utf8_general_ci NOT NULL default '', `end_date` varchar(255) collate utf8_general_ci NOT NULL default '', `bn_content` text collate utf8_general_ci NOT NULL, `popsize_width` int(4) NOT NULL default '0', `popsize_height` int(4) NOT NULL default '0', `popposition_left` int(4) NOT NULL default '0', `popposition_top` int(4) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (pop_id) ) ENGINE=MyISAM

1050 : Table 'g4_popup' already exists

error file : /mblabor/adm/popup_sql.php
위와 같이 나옵니다.
그리고 기존에 백업받은 sql파일을 putty로 실행을 하면 g4_popup테이블을 만들지 못하고 위쪽까지만 만들어지네요
문제가 무엇일까요?
다른 서버에서는 이미 잘 사용하고 있습니다.

그리고 phpMyAdmin에 들어가면 g4_popup란 테이블이 없습니다.
미쳐버리겠습니다.

고수님들 한수 부탁드립니다.


<?
//-----------------------------------------------------
// 타 이 틀 : 팝업창관리 Ver 1.0
// 홈페이지 : http://www.logoff.co.kr/
// E-MAIL : [email protected]
// Messenger : 네이트온 [email protected]
// 최종수정일 : 2008. 04. 20
//-----------------------------------------------------
?>
<?
include_once("./_common.php");

// 팝업창 데이터베이스 업데이트 파일
$mysql_schema_popup = "(
  `pop_id` int(11) NOT NULL auto_increment,
  `pop_title` varchar(255) collate utf8_general_ci NOT NULL default '',
  `pop_use` char(1) NOT NULL default '0',
  `start_date` varchar(255) collate utf8_general_ci NOT NULL default '',
  `end_date` varchar(255) collate utf8_general_ci NOT NULL default '',
  `bn_content` text collate utf8_general_ci NOT NULL,
  `popsize_width` int(4) NOT NULL default '0',
  `popsize_height` int(4) NOT NULL default '0',
  `popposition_left` int(4) NOT NULL default '0',
  `popposition_top` int(4) NOT NULL default '0',
  `create_date` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (pop_id)
) ENGINE=MyISAM
";

// 팝업창
$sql = "
CREATE TABLE g4_popup
$mysql_schema_popup
";
sql_query($sql);

alert("팝업 테이블이 생성되었습니다. 반드시 현재파일(popup_sql.php)을 삭제해 주세요.","./popup_list.php");
?>


웹에서 파일을 실행하면 다음과 같이 나오네요

CREATE TABLE g4_popup ( `pop_id` int(11) NOT NULL auto_increment, `pop_title` varchar(255) collate utf8_general_ci NOT NULL default '', `pop_use` char(1) NOT NULL default '0', `start_date` varchar(255) collate utf8_general_ci NOT NULL default '', `end_date` varchar(255) collate utf8_general_ci NOT NULL default '', `bn_content` text collate utf8_general_ci NOT NULL, `popsize_width` int(4) NOT NULL default '0', `popsize_height` int(4) NOT NULL default '0', `popposition_left` int(4) NOT NULL default '0', `popposition_top` int(4) NOT NULL default '0', `create_date` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (pop_id) ) ENGINE=MyISAM

1050 : Table 'g4_popup' already exists

error file : /gn/adm/popup_sql.php
이런식으로 나오네요
추천0

첨부파일

댓글목록 1

골든님의 댓글

골든쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

호스팅업체에 전화해서 조치를 했습니다.
DB 스키마가 잘못되어서란 답변...

전체 1,640건 26 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기