Loading...
 
Skip to main content

Architecture / Installation


You are viewing a reply to Articless database error

Re: Articless database error

> Hi All, I am getting an odd error message and it surrounds the articles database. When I try and setup the database I get a sql syntax error for the tiki_articles table. It says that it is near line 28 I go and I look at the sql syntax and everything looks fine. here is what it is can someone help me figure it out?
>
> DROP TABLE IF EXISTS tiki_articles;
> CREATE TABLE tiki_articles (
> articleId int(8) NOT NULL auto_increment,
> topline varchar(255) default NULL,
> title varchar(80) default NULL,
> subtitle varchar(255) default NULL,
> linkto varchar(255) default NULL,
> lang varchar(16) default NULL,
> state char(1) default 's',
> authorName varchar(60) default NULL,
> topicId int(14) default NULL,
> topicName varchar(40) default NULL,
> size int(12) default NULL,
> useImage char(1) default NULL,
> image_name varchar(80) default NULL,
> image_caption text default NULL,
> image_type varchar(80) default NULL,
> image_size int(14) default NULL,
> image_x int(4) default NULL,
> image_y int(4) default NULL,
> image_data longblob,
> publishDate int(14) default NULL,
> expireDate int(14) default NULL,
> created int(14) default NULL,
> heading text,
> body text,
> hash varchar(32) default NULL,
> author varchar(200) default NULL,
> __ reads int(14) default NULL,
> votes int(8) default NULL,
> points int(14) default NULL,__
> type varchar(50) default NULL,
> rating decimal(3,2) default NULL,
> isfloat char(1) default NULL,
> PRIMARY KEY (articleId),
> KEY title (title),
> KEY heading 255,
> KEY body 255,
> KEY reads (reads),
> KEY author 32,
> FULLTEXT KEY ft (title,heading,body)
> ) TYPE=MyISAM AUTO_INCREMENT=1 ;

well I hit on the problem reads is a reserved word in mysql 5 and my host is running 5 so I guess I will have to find a workaround