sql >> Base de Datos >  >> RDS >> Mysql

#1214 - El tipo de tabla utilizado no admite índices FULLTEXT

Antes de MySQL 5.6, la búsqueda de texto completo es compatible solo con motor MyISAM.

Por lo tanto, cambie el motor de su tabla a MyISAM

CREATE TABLE gamemech_chat (
  id bigint(20) unsigned NOT NULL auto_increment,
  from_userid varchar(50) NOT NULL default '0',
  to_userid varchar(50) NOT NULL default '0',
  text text NOT NULL,
  systemtext text NOT NULL,
  timestamp datetime NOT NULL default '0000-00-00 00:00:00',
  chatroom bigint(20) NOT NULL default '0',
  PRIMARY KEY  (id),
  KEY from_userid (from_userid),
  FULLTEXT KEY from_userid_2 (from_userid),
  KEY chatroom (chatroom),
  KEY timestamp (timestamp)
) ENGINE=MyISAM;

Aquí está SQLFiddle demostración

o actualice a 5.6 y use InnoDB Full-Text Search.