解决[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause andcontains nonaggregated column 'information schema.PROFlLING.SEQ' which isnot functionally dependent on columns in GROUP BY clause; this is incompatiblewith sql mode=only_full_group_by问题

不影响运行但访问客户端总是出错

打开配置文件/etc/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

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐