mysql 5.7 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonag
up vote 111 down vote favorite 32 | I accidentally enabled ONLY_FULL_GROUP_BY mode like this: How do I disable it?
| ||||||||||||||||||||
|
11 Answers
up vote 16 down vote accepted | Give this a try: As per @xQbert in the comments above, check http://www.mysqlfaqs.net/mysql-faqs/Client-Server-Commands/What-is-sql-mode-in-MySQL-and-how-can-we-set-it Community Note: As pointed out in the answers below, this actually clears all the SQL modes currently enabled. That may not necessarily be what you want.
| ||||||||||||||||||||
|
up vote 3 down vote | Thanks to @cwhisperer. I had the same issue with Doctrine in a Symfony app. I just added the option to my config.yml: This worked fine for me.
| ||
add a comment |
up vote 2 down vote | On:
Do: Copy and paste: To the bottom of the file
| ||||||||
add a comment |
up vote 154 down vote | The best way to go about it without emptying sql_mode out it worked for me and you can read more at http://johnemb.blogspot.com.ng/2014/09/adding-or-removing-individual-sql-modes.html
| ||||||||||||||||||||
|
up vote 1 down vote | I'm using doctrine and I have added the driverOptions in my doctrine.local.php : In phpmyadmin the user needs SUPER activated in the privileges.
| ||||
add a comment |
up vote 85 down vote | If you want to disable permanently error
This will disable
| ||||||||||||||||
add a comment |