Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MYSQL Syntax Error - When listing Total Messages by Date #1066

Closed
RT4U opened this issue May 10, 2018 · 2 comments
Closed

MYSQL Syntax Error - When listing Total Messages by Date #1066

RT4U opened this issue May 10, 2018 · 2 comments

Comments

@RT4U
Copy link

RT4U commented May 10, 2018

Error message thrown

PHP message: PHP Fatal error: Uncaught mysqli_sql_exception: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'mailscanner.maillog.date' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Fresh installation - version 1.2.9

Fix, that worked for me

Execute the below query as admin or root to reset the sql_mode

SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))

@RT4U RT4U changed the title MYSQL Syntax Error - When listing Total Messages by Date if sql_mode=only_full_group_by MYSQL Syntax Error - When listing Total Messages by Date May 10, 2018
@Skywalker-11
Copy link
Member

@RT4U which mysql server and version are you using?

@Skywalker-11
Copy link
Member

#1067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants