从今天开始,遇到mysql错误,立马更新。
错误1
这个是我今天在数据库创建视图的时候报的一个错误
[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated
column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY
clause; this is incompatible with sql_mode=only_full_group_by
解决办法下my.cnf中添加以下几行
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
在sql_mode 中去掉only_full_group_by
然后重启MySQL Server即可。答案收集来自http://www.codesec.net/view/508611.html