Syntax error or access violation: 1055 Expression #8 of SELECT list is not in GROUP BY clause and contains nonaggregated column

前端 未结 5 809
时光说笑
时光说笑 2021-02-13 15:28

i tried the CakePHP 3.x \"Bookmaker Tutorial\" and i followed the instruction step by step. Unfortunately, at the end of the first chapter i get the attached error:



        
5条回答
  •  醉梦人生
    2021-02-13 15:53

    I'm using Laravel 5.4 and facing same problem.
    I try to set strict into false on config/database.php and it works.

    'connections' => [
        'mysql' => [
            'strict' => false,
        ]
    ]
    

    However it's better to edit sql query than suppress it's warning.

提交回复
热议问题