Home  >  Q&A  >  body text

mysql - phpmyadmin built on linux cannot build the database

Linux After installing lamp on Alibaba Cloud, then installed phpmyadmin
System: Centos7.2

 apache
 mysql5.7.17
 php5.6
 

Then log in to phpmyadmin
I found an error when building the database
A colleague had the same problem.
Looking for a solution!

我想大声告诉你我想大声告诉你2667 days ago785

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-06-07 09:25:23

    this is incompatible with sql_mode=only_full_group_by.

    ONLY_FULL_GROUP_BY:

    For GROUP BY aggregation operation, if the column in select does not appear in group by, then this SQL statement is illegal.

    As a solution, add the following lines to my.cnf

    [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'

    Remove only_full_group_by in sql_mode

    Then restart MySQL Server.

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-07 09:25:23

    Look at the mysql error report saying that when selecting, there is no group by field in the select. Of course, this is just a low-level error. It may be that some configurations of your mysql or phpadmin are incorrect. Or the php extension required by phpadmin is not turned on.

    reply
    0
  • Cancelreply