sql แจ้ง error ช่วยดูให้หน่อยครับ

เริ่มโดย pyai, 19 ธันวาคม 2009, 09:47:04

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

pyai

ผมจะทำลงในเครื่องตัวเองแล้ว ระบบแจ้ง error ดังนี้ครับ

ผิดพลาด

อาจจะมีข้อผิดพลาดบางอย่างในคำค้น SQL ของคุณ. หาก MySQL server ได้แจ้งข้อผิดพลาดมาด้านล่างนี้ ให้ลองอ่านดู มันอาจจะช่วยให้คุณวินิจฉัยปัญหาได้ดีขึ้น

ERROR: ไม่ได้ปิดเครื่องหมายคำพูด @ 440
STR: `
SQL:

-- --------------------------------------------------------

--
-- ?????????? `banner`
--

CREATE TABLE IF NOT EXISTS `banner` (
  `id` int(3) NOT NULL auto_increment,
  `nametype` varchar(255) NOT NULL default '',
  `pictype` varchar(200) NOT NULL default '',
  `use1` int(2) NOT NULL default '0',
  `statusa` int(2) NOT NULL default '0',
  `datea` date NOT NULL default '0000-00-00',
  `opena` int(3) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=InnoDB AUTO_INCREMENT=4 ;


คำค้น SQL:

-- -------------------------------------------------------- -- -- ?????????? `banner` -- CREATE TABLE IF NOT EXISTS `banner` ( `id` int(3) NOT NULL auto_increment, `nametype` varchar(255) NOT NULL default '', `pictype` varchar(200) NOT NULL default '', `use1` int(2) NOT NULL default '0', `statusa` int(2) NOT NULL default '0', `datea` date NOT NULL default '0000-00-00', `opena` int(3) NOT NULL default '0', PRIMARY KEY (`id`) ) TYPE=InnoDB AUTO_INCREMENT=4 ;

MySQL แสดง: เอกสารอ้างอิง
#1289 - The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working

ไม่ทราบว่าผมต้องแก้ตรงจุดไหนครับ 
[direct=http://orasaz.com]yoga[/direct] , [direct=http://lnwsa.com].[/direct],[direct=http://aanaboliccooking.com].[/direct]

Reality

*You walk right into reality, While my heart's still wild and free.. 

[direct=http://midnightadventure.net]Midnight Adventure[/direct]

tdelphi

ใน SQL บังคับ type เป็๋น Innodb ตรงนี้
อ้างถึง
) TYPE=InnoDB AUTO_INCREMENT=4 ;

ถ้าไม่อยากใช้ InnoDB  ก็แก้ให้เป็น MyISAM ครับ

pyai

ขอบคุณทั้งสองท่านมากครับ จะลองแก้ดูครับ ได้ผลอย่างไรจะมาแจ้งอีกครั้งครับ 
[direct=http://orasaz.com]yoga[/direct] , [direct=http://lnwsa.com].[/direct],[direct=http://aanaboliccooking.com].[/direct]

pyai

ได้แล้วครับ ใช้แก้เป็น MyISAM

แต่พอเข้าเวบด้วย FF เมื่อคลิก เข้าสูระบบ แล้วเข้ามาที่หน้า ไฟล์ sql ครับ แต่ถ้าเข้าด้วย IE สามารถเข้าได้ปกติ ต้องแก้อย่างไรครับ
[direct=http://orasaz.com]yoga[/direct] , [direct=http://lnwsa.com].[/direct],[direct=http://aanaboliccooking.com].[/direct]

Bes

อ้างถึงจาก: tdelphi ใน 19 ธันวาคม 2009, 11:21:49
ใน SQL บังคับ type เป็๋น Innodb ตรงนี้
อ้างถึง
) TYPE=InnoDB AUTO_INCREMENT=4 ;

ถ้าไม่อยากใช้ InnoDB  ก็แก้ให้เป็น MyISAM ครับ


ขอบคุณครับ

ว่าแต่ปัจจุบันนี้จะเป็น default InnoDB กันหมดแล้วเปลี่ยนแบบนี้จะมีผลอะไรไหมครับ

[direct=https://client.hostsevenplus.com/aff.php?aff=396]✔ แนะนำ Hosting และ VPS ราคาเริ่มต้น 277 บาทฟรี! SSL ซัพพอทคุยง่าย[/direct]

[direct=https://www.bitkub.com/signup?ref=512782]✔ ซื้อบิทคอยที่ Bitkub (ได้รับการรับรองจาก กลต.)[/direct]

MapTwoZa

#6
อ้างถึงจาก: Bes ใน 31 ตุลาคม 2013, 15:57:27
อ้างถึงจาก: tdelphi ใน 19 ธันวาคม 2009, 11:21:49
ใน SQL บังคับ type เป็๋น Innodb ตรงนี้
อ้างถึง
) TYPE=InnoDB AUTO_INCREMENT=4 ;

ถ้าไม่อยากใช้ InnoDB  ก็แก้ให้เป็น MyISAM ครับ


ขอบคุณครับ

ว่าแต่ปัจจุบันนี้จะเป็น default InnoDB กันหมดแล้วเปลี่ยนแบบนี้จะมีผลอะไรไหมครับ

default อะไรไม่สำคัญครับ
InnoDB กับ MyISAM มีข้อดี ข้อเสีย และเหมาะกับการใช้งานต่างกันครับ ใช้ให้เหมาะครับ

db นึง บางตารางผมใช้ MyISAM บางตารางผมใช้ InnoDB ครับ
Good code quality Developer :D

weerapon

ขอบคุณท่าน Reality  ผ่านได้ผลครับ
♔ ♕ ♚ ♛ ⚜

xvlnw.com

ถ้าไม่มีความจำเป็นอะไรถึงกับต้องใช้ InnoDB ผมแนะนำให้เลือกใช้ MyISAM จะดีกว่านะครับ
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

TheBoyzz

ดูจากชื่อ table น่าจะใช้ MyISAM มากกว่านะ