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…
1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'rpacloudsit.t.app_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by MySQL有any_…
环境:mysql-8.0.15-winx64 问题描述: Error querying database. Cause: java.sql.SQLSyntaxErrorException: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'tt.from_id' which is not functionally dependent on columns in GRO…
laravel 5.3 以后默认开启 mysql严格模式(strict)在mysql在严格模式下, 并且开启了ONLY_FULL_GROUP_BY的情况下,group by 的字段没有出现在 select 的语句中会报错.关闭了严格模式就不会报错. 如下Demo public static function orders($phase) { return self::select(DB::raw("SUM(orders) as orders"),"type",&qu…
今天在学习laravel的路由模型绑定时,在按照文档执行php artisan migrate时报错. In Connection.php line 664: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(…
问题: 1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cmp-31161029.t1.user_name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by,…