Home >Database >Mysql Tutorial >mysql错误_MySQL

mysql错误_MySQL

WBOY
WBOYOriginal
2016-06-01 13:11:49938browse

mysql错误:Specified key was too long; max key length is 1000 bytes 解决方法:


修改MySQL的默认数据库存储引擎

因为MySQL默认的是MyISAM数据引擎,不支持事务也不支持外键,所以需要用到Innodb引擎,于是决定将 mysql的默认引擎设置为innodb。

只要在配置文件my.cnf中的 [ mysqld] 下面加入:


default-storage-engine=INNODB


重启mysql即可


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn