Linux Nach der Installation von Lamp in der Alibaba Cloud wird dann phpmyadmin installiert
System: Centos7.2
apache
mysql5.7.17
php5.6
Dann melden Sie sich bei phpmyadmin an
und finden Sie einen Fehler beim Aufbau der Datenbank
Ein Kollege hatte auch die gleiche Situation.
Auf der Suche nach einer L?sung!
this is incompatible with sql_mode=only_full_group_by.
對(duì)于GROUP BY聚合操作,若select中的列沒(méi)有在group by中出現(xiàn),那么這句SQL是不合法的。
[mysqld]
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_pISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
在sql_mode 中去掉only_full_group_by
然后重啟MySQL Server即可。
看 mysql 報(bào)錯(cuò)說(shuō)是 select 的時(shí)候 select 了沒(méi)有 group by 的字段。當(dāng)然,這只是底層報(bào)錯(cuò)。可能是你的 mysql 或者 phpadmin 某些配置不對(duì)?;蛘?phpadmin 需要的 php 擴(kuò)展沒(méi)打開(kāi)。