Solved by modifying the parameters
1. Query the parameters of sql_mode
select @@global.sql_mode
2. Modify the parameter value and re-assign
#将参数ONLY_FULL_GROUP_BY去掉
set @@global.sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'