I have a problem when I am trying to create a new table in phpmyadmin in a database. The code is:
DROP TABLE IF EXISTS phpcrawler_links;
CREATE TABLE phpcrawler_links (
id int(11) NOT NULL auto_increment,
site_id int(11) NOT NULL default 0,
depth int(11) NOT NULL default 0,
url text NOT NULL,
url_title text,
url_md5 varchar(255) NOT NULL,
content text NOT NULL,
content_md5 varchar(255) NOT NULL,
last_crawled datetime,
crawl_now int(11) NOT NULL default 1,
PRIMARY KEY (id),
KEY idx_site_id(site_id),
KEY idx_url (url(255)),
KEY idx_content_md5(content_md5),
FULLTEXT ft_content(content),
KEY idx_last_crawled(last_crawled)
);
DROP TABLE IF EXISTS words;
CREATE TABLE words (
id int(11) NOT NULL,
word varchar(255) NOT NULL
);
The problem seems to be on this line:
last_crawled datetime,
The error I get is:
#1214 - The used table type doesn't support FULLTEXT indexes
If anyone can help me out with this I will be greatfull!
Google rules! Only MyISAM tables support fulltext indicies. http://forums.mysql.com/read.php?107,194405,194677
如果表是Innodb,则不能向该数据库添加索引,必须将引擎更改为MyISAM或将数据类型更改为int
似乎您使用的是旧版本的MySQL,例如从MySQL 5.6开始,InnoDB已支持全文索引。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.