SELECT list is not in GROUP BY clause and contains nonaggregated column … incompatible with sql_mode=only_full_group_by

前端 未结 19 3062
灰色年华
灰色年华 2020-11-22 11:28

AM using MySQL 5.7.13 on my windows PC with WAMP Server

Here my Problem is While executing this query

SELECT *
FROM `tbl_customer_pod_uploads`
WHERE          


        
19条回答
  •  难免孤独
    2020-11-22 11:48

    Below method solved my problem:

    In ubuntu

    Type: sudo vi /etc/mysql/my.cnf

    type A to enter insert mode

    In the last line paste below two line code:

    [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
    

    Type esc to exit input mode

    Type :wq to save and close vim.
    

    Type sudo service mysql restart to restart MySQL.

提交回复
热议问题