一、mysql配置文件
1.查找mysql 配置文件地址 ,按顺序
mysql --help|grep ‘my.cnf’
2.修改配置文件
[mysqld] # 一旦服务端启动立刻加载下面的配置
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
二 、mysql 查找安装路径
select @@basedir。查找安装路径
select @@datadir。查找数据路径
select @@sql_mode 查看数据配置
三、分组不能用报错
1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘sys.d.price’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by, Time: 0.014000s
1。修改mysql 配置文件
2。查找字段加聚合函数 max min sum之类
四、分组合并字段 GROUP_CONCAT