My flickr

我的
我的
我的

views: 3325 times
MySQL Query error: SELECT l.*, lc.name AS categoryName FROM tc_Links l LEFT JOIN tc_LinkCategories lc ON lc.blogid = l.blogid AND lc.id = l.category WHERE l.blogid = 1 ORDER BY lc.name, l.name

Error no. 1054 : Unknown column 'l.category' in 'on clause'

Fixed within myphpadmin,

Open tc_Links ( or your TextCube prefix with Links table),
Add a new row below the 'id' called 'category', type, INT, length 11, default 0
OR there is SQL commend,
ALTER TABLE `rc1_Links` ADD `category` INT( 11 ) NOT NULL DEFAULT '0' AFTER `id`;

Please check your textcube database prefix, thanks.

IF You want to re-build TextCube or install new one,

Open setup.php find line about 1270,
there are,
CREATE TABLE {$_POST['dbPrefix']}Links (
  pid int(11) NOT NULL default '0',
  blogid int(11) NOT NULL default '0',
  id int(11) NOT NULL default '0',
  name varchar(255) NOT NULL default '',
...etc.

add new line between id and name,

  id int(11) NOT NULL default '0',
  category int(11) NOT NULL default '0',
  name varchar(255) NOT NULL default '',

re-setup the TC.
創用 CC 授權
Creative Commons License
本創作適用 姓名標示-非商業性-禁止改作3.0 創用 CC 授權,台灣並依循所適用的授權條款。
 相關文章 

Writer profile
author image
偏執與強迫症的患者,算不上是無可救藥,只是我已經遇上我的良醫了。

Posted by hina

2008/06/05 15:31 2008/06/05 15:31
, , Keyword TextCube
Response
No Trackback , No Comment
RSS :
http://blog.hinablue.me/rss/response/565

Trackback URL : http://blog.hinablue.me/trackback/565

« Previous : 1 : ... 294 : 295 : 296 : 297 : 298 : 299 : 300 : 301 : 302 : ... 828 : Next »