Ðăng Nhập

View Full Version : Bị lỗi Error Number : 1146



nguyenlethanhthao
19-03-2011, 02:36 PM
các bạn giúp dzum mình khắc phục lỗi này đi, mình bó tay rùi, hic hic:MatCuoi (14):
Database error in vBulletin 4.0.5:
Invalid SQL:
SELECT userid from post where threadid='1' AND userid=1;
MySQL Error : Table 'b7_7392507_thao.post' doesn't exist
Error Number : 1146
Request Date : Saturday, March 19th 2011 @ 07:31:38 AM
Error Date : Saturday, March 19th 2011 @ 07:31:38 AM
Script : http://nltt7777.byethost7.com/da08ttb/showthread.php?1-hhhhhhhhhhhhhhhhhhhhhhh&p=2
Referrer : http://nltt7777.byethost7.com/da08ttb/forum.php
IP Address : 125.234.144.172
Username : Admin
Classname : vB_Database
MySQL Version : 5.0.87-d10-ourdelta65

Ai biết xin hướng dẫn dùm cách khắc phục nhe, cảm ơn các bro nhiều

hanhkhat
19-03-2011, 05:22 PM
bạn vào phpmyadmin -->chọn database của forum bạn --> nhấn vào SQL
pass đoạn code này vào và nhấn Go
http://i202.photobucket.com/albums/aa312/Phucpro_2007/upload%20web/2011-03-19_171616.png

DROP TABLE IF EXISTS `post`;
CREATE TABLE `post` (
`postid` int(10) unsigned NOT NULL auto_increment,
`threadid` int(10) unsigned NOT NULL default '0',
`parentid` int(10) unsigned NOT NULL default '0',
`username` varchar(100) NOT NULL default '',
`userid` int(10) unsigned NOT NULL default '0',
`title` varchar(250) NOT NULL default '',
`dateline` int(10) unsigned NOT NULL default '0',
`pagetext` mediumtext,
`allowsmilie` smallint(6) NOT NULL default '0',
`showsignature` smallint(6) NOT NULL default '0',
`ipaddress` char(15) NOT NULL default '',
`iconid` smallint(5) unsigned NOT NULL default '0',
`visible` smallint(6) NOT NULL default '0',
`attach` smallint(5) unsigned NOT NULL default '0',
`infraction` smallint(5) unsigned NOT NULL default '0',
`reportthreadid` int(10) unsigned NOT NULL default '0',
`htmlstate` enum('off','on','on_nl2br') NOT NULL default 'on_nl2br',
`post_thanks_amount` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`postid`),
KEY `userid` (`userid`),
KEY `threadid` (`threadid`,`userid`),
KEY `threadid_visible_dateline` (`threadid`,`visible`,`dateline`,`userid`,`postid` ),
KEY `ipaddress` (`ipaddress`),
KEY `dateline` (`dateline`)
) ENGINE=MyISAM AUTO_INCREMENT=4075 /*!40101 DEFAULT CHARSET=latin1 */;

nguyenlethanhthao
19-03-2011, 07:29 PM
Cám ơn bạn nhiều lắm !
hihi, hì hì hèn j mình đã tạo table = lệnh "CREATE TABLE `nltt_7777post` " nhưng nó vẫn bị lỗi.