--
-- Table structure for table `film_text`
--
-- InnoDB added FULLTEXT support in 5.6.10. If you use an
-- earlier version, then consider upgrading (recommended) or
-- changing InnoDB to MyISAM as the film_text engine
--
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id),
FULLTEXT KEY idx_title_description (title,description)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
MySQL sample database sakila installation
Change “” film_ The engine of “text” table is changed to: MyISAM will not report error
--
-- Table structure for table `film_text`
--
-- InnoDB added FULLTEXT support in 5.6.10. If you use an
-- earlier version, then consider upgrading (recommended) or
-- changing InnoDB to MyISAM as the film_text engine
--
CREATE TABLE film_text (
film_id SMALLINT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
PRIMARY KEY (film_id),
FULLTEXT KEY idx_title_description (title,description)
)ENGINE=MyISAM DEFAULT CHARSET=utf8;
Similar Posts:
- mysql: [Err] 1075 – Incorrect table definition; there can be only one auto column and it must be d…
- [Solved] MySQL query reports an error: Legal mix of settlements
- How to Solve SQL fulltext error
- MySQL timestamp set default value error Invalid default value reason and solution
- Incorrect key file for table [How to Solve]
- [Solved] MYSQL5.6 Error: ERROR 1709 (HY000): Index column size too large. The maximum column size is 767 bytes.
- Database upgrade from Zabbix 5.0.15 to Zabbix 5.2.7 failed
- MySQL Error Number 1005 Can’t create table (Errno:150)
- In Oracle, an error is reported: ora-00904
- When mysql creates a table, set timestamp DEFAULT NULL error 1067-Invalid default value for’updated_at’