在进行mysql建表操作时,出现"
Specified key was too long; max key length is 767 bytes
",在网上找了很多,都说是mysql varchar(255)长度限制为255,超过了会报错,以前在32位操作系统上没注意这个问题。换成win7 64位后,mysql升级到mysql-essential-6.0.11-alpha-winx64.msi后,总是报这个错误,在网上查,也总是分析各类编码在varchar(255)的情况下能存储多少字符,在网上下了一些mysql脚本,有不少字段是varchar(2000)、varchar(4000)的,这些脚本在我的mysql下总是报这个错。偶然的看到说mysql5.0之前的版本varchar最大长度就是255,但是我安装的是6.0的,为什么还会报这个错呢,不过总体感觉应该是版本的问题,所以,换了几个版本,最终安装mysql-5.5.36-winx64.msi后,发现没有再报错。纠结了好久的问题终于解决了记录一下。总之,mysql不同版本之间对varchar长度的支持是不同的。
相关推荐
今天在为数据库中的某两个字段设置unique索引的时候,出现了Specified key was too long; max key length is 1000 bytes错误
本文将详细提供mysql建库时提示Specified key was too long max key length is 1000 bytes的问题的解决方法,有需求的朋友可以参考
nacos-server-1.1.4 windows下的运行程序 springcloud alibaba
13.1. 数据定义语句 13.1.1. ALTER DATABASE语法 13.1.2. ALTER TABLE语法 13.1.3. CREATE DATABASE语法 13.1.4. CREATE INDEX语法 13.1.5. CREATE TABLE语法 13.1.6. DROP DATABASE语法 ...
但方便的同时也会伴随着一些问题,下面这篇文章将详细给大家介绍关于Laravel5.4中migrate报错Specified key was too long error的解决方法,下面话不多说了,来一起看看详细的介绍吧。 发现问题 Laravel 5.4默认使用...
ALTER TABLE table1 ALTER COLUMN ... 您可能感兴趣的文章:sql server建库、建表、建约束技巧mysql建库时提示Specified key was too long max key length is 1000 bytes的问题的解决方法Mysql 建库建表技巧分享SQL S
调整参数后引起,ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 3 2768M 的解决方案
Illuminate\Database\QueryException : ... max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`)) 以上报错是因为你的数据库版本低于当前laravel要求,larave
max key length is 767 bytes 解决方案1: 直接缩短到255长度 解决方案2: 修改数据库配置, set innodb_large_prefix=on 吐槽一下, 1.2.0版本比1.1.4版本多创建一个数据表, 为甚么前面的sql有引擎,有...
解决Mysql Error-The user specified as a definer (‘mysql.infoschema’@’localhost’) does not exist
修改源码后的jar包 解决:The signing key's size is 1024 bits which is not secure enough for the RS256 algorithm.
本文介绍Oralce数据库中,...00972. 00000 – “identifier is too long” *Cause: An identifier with more than 30 characters was specified. *Action: Specify at most 30 characters. 从这个错误提示可以看出
mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
licenses to be able to use specified GPL-licensed MySQL client libraries despite the fact that not all such FOSS licenses are compatible with version 2 of the GNU General Public License. Therefore ...
During an execution of some of the public-key-based key establishment schemes specified in NIST Special Publications 800-56A [1] and 800-56B [2], a key derivation method is used to obtain secret ...
If the encrypt argument is DES_ENCRYPT, the input (plaintext) is encrypted into the output (ciphertext) using the specified key_schedule. If the encrypt argument is DES_DECRYPT, the input (ciphertext...
本文实例讲述了Laravel框架运行出错提示RuntimeException No application encryption key has been specified.解决方法。分享给大家供大家参考,具体如下: ①在项目根目录放置.env文件 .env APP_NAME=Laravel APP_...