Home > Database > Mysql Tutorial > mysql错误_MySQL

mysql错误_MySQL

WBOY
Release: 2016-06-01 13:11:49
Original
903 people have browsed it

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
Copy after login


重启mysql即可


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template