SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_unicode_ci' is no

Posted 许嵩的迷妹

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_unicode_ci' is no相关的知识,希望对你有一定的参考价值。

SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION \'utf8mb4_unicode_ci\' is not valid for CHARACTER SET \'binary\'

 

 

对数据表更改,然后执行数据迁移命令php artisan migrate,之后报错如下:

  

 

 

 解决办法:

 

 参考:https://www.hellojava.com/a/68286.html

以上是关于SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_unicode_ci' is no的主要内容,如果未能解决你的问题,请参考以下文章

Laravel7 安装 laravel-admin 出现 IlluminateDatabaseQueryException SQLSTATE[42000]: Syntax error or (代

php artisan migrate时出现 SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was to

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length

laravel5.6 IlluminateDatabaseQueryException : SQLSTATE[42000]: Syntax error or access violatio(代码片

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length

SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_unicode_ci' is no