在安裝supesite6.0/x-space4.0後登陸個人空間時,出現這樣的錯誤:
SupeSite info: MySQL Query Error
User: Guest
Time: 2010-5-10 1:21pm
Script: /xspace/index.phpSQL: SELECT t.tid, t.author, t.subject, t.fid, t.views, t.replies, t.dateline, t.lastpost FROM
discuz
.[Table]mythreads
m,discuz
.[Table]threads
t WHERE m.uid=’1′ AND m.tid=t.tid AND t.displayorder>=0 AND t.author!=” ORDER BY t.tid DESC LIMIT 0,10
Error: Table ‘discuz.[Table]mythreads’ doesn’t exist
Errno.: 1146
這是表缺失的關系,可以通過在phpMyadmin執行以下語句:
CREATE TABLE IF NOT EXISTS
cdb_myposts
(
uid
mediumint(8) unsigned NOT NULL default ’0′,
tid
mediumint(8) unsigned NOT NULL default ’0′,
pid
int(10) unsigned NOT NULL default ’0′,
position
smallint(6) unsigned NOT NULL default ’0′,
dateline
int(10) unsigned NOT NULL default ’0′,
special
tinyint(1) unsigned NOT NULL default ’0′,
PRIMARY KEY (uid
,tid
),
KEYtid
(tid
,dateline
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;CREATE TABLE IF NOT EXISTS
cdb_mythreads
(
uid
mediumint(8) unsigned NOT NULL default ’0′,
tid
mediumint(8) unsigned NOT NULL default ’0′,
special
tinyint(1) unsigned NOT NULL default ’0′,
dateline
int(10) NOT NULL default ’0′,
PRIMARY KEY (uid
,tid
),
KEYtid
(tid
,dateline
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
新建表就行。
注意:如果是gbk的把utf8替換成gbk,還有就是cdb是你論壇數據庫的前綴~如果有改論壇數據庫前綴的也要注意更改。