 |
ถามเรื่องเซิฟเวอร์จำลองครับ syntax to use near '{$db_prefix}attachments ( ID_ATTACH int(10) unsigned NOT |
|
 |
|
|
 |
 |
|
ผมโหลดเวบบอร์ดของ SMF มา แล้วผม import ไฟล์ SQL ไปนะครับ แล้วปรากฏว่ามันเออเร่อ มันฟ้องว่า
Error
SQL query:
#### ATTENTION: You don't need to run or use this file! The install.php script does everything for you!
#
# Table structure for table `attachments`
#
CREATE TABLE {$db_prefix}attachments(
ID_ATTACH int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
ID_THUMB int( 10 ) unsigned NOT NULL default '0',
ID_MSG int( 10 ) unsigned NOT NULL default '0',
ID_MEMBER mediumint( 8 ) unsigned NOT NULL default '0',
attachmentType tinyint( 3 ) unsigned NOT NULL default '0',
filename tinytext NOT NULL ,
file_hash varchar( 40 ) NOT NULL default '',
size int( 10 ) unsigned NOT NULL default '0',
downloads mediumint( 8 ) unsigned NOT NULL default '0',
width mediumint( 8 ) unsigned NOT NULL default '0',
height mediumint( 8 ) unsigned NOT NULL default '0',
PRIMARY KEY ( ID_ATTACH ) ,
UNIQUE ID_MEMBER( ID_MEMBER, ID_ATTACH ) ,
KEY ID_MSG( ID_MSG )
) TYPE = MYISAM ;
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{$db_prefix}attachments (
ID_ATTACH int(10) unsigned NOT NULL auto_increment,' at line 1
แบบนี้เป็นเพราะอะไรครับ ขอบคุณครับ
ปล. ทดลองอัพลงเซิฟเวอร์จริง มันก็ขึ้นแบบนั้นเหมือนกันครับ
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
2009-10-07 00:20:44 |
By :
anusorn1234 |
View :
1476 |
Reply :
5 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันบอกว่าไม่ต้อง import sql file ไง
|
 |
 |
 |
 |
Date :
2009-10-07 00:30:22 |
By :
mr.v |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แล้วไม่ import เข้าไป ผมลองรันไฟล์ install.php แล้วมันไม่ให้ผมรันอะ
Unable to find crucial installation files in the directory of this script!
Please make sure you uploaded the entire installation package, including the sql file, and then try again.
คลิกที่นี่ เพื่อทำขั้นตอนนี้อีก
ขึ้นแบบนี้คับ
|
 |
 |
 |
 |
Date :
2009-10-07 00:53:59 |
By :
anusorn1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมน่าจะ import จาก sql version 4 นะsyntax มันไม่รู้จักร ผมเคยแก้อยู่ คือ
1.ตอนน export เลือกเป็นเวอร์ชั่น4หรือ
2. TYPE = MYISAM ; หรือลบ ตรงนี้ใหเหลือ };เท่านั้นนะครับลองดู
|
 |
 |
 |
 |
Date :
2009-10-07 02:02:34 |
By :
Golfgab |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{$db_prefix}attachments (
ID_ATTACH int(10) unsigned NOT NULL auto_increment,' at line 1
เป็นเหมือนเดิมครับ ลองลบ MYISAM แล้วก็เหมือนเดิมนะครับ ทำยังไงดีครับ T_T
|
 |
 |
 |
 |
Date :
2009-10-07 03:14:39 |
By :
anusorn1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ช่วยหน่อยนะครับทุกคน ผมเหลือเวบบอร์ดอย่างเดียวก็เสร็จแล้วครับ ฮือๆๆๆ ติดมาสองวันแล้ว
|
 |
 |
 |
 |
Date :
2009-10-07 10:12:48 |
By :
anusorn1234 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|