Ошибка SQLSTATE[42000] yii2
Ошибка: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
Когда в yii2 на Openserver выводиться ошибка
1 | Ошибка: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column |
Нужно добавить в файл конфигурации вашего mysql сервера (файл config\mysql***.ini — в OpenServer) следующую строку
1 2 | [mysqld] sql-mode="" |