Mysql error - this is incompatible with sql_mode=only_full_group_by

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=WT0GjkmGj70



Duration: 1:15
17,291 views
74


i get this error when trying to run a query :

#1055 - Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test.tr_dashboard.nama' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

---
problem :
your GROUP BY

solution :
run this query :
1) SET sql_mode = '';
2) SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

---
see this video for details. :)




Other Videos By Ambar Hasbiyatmoko


2017-10-28Laravel 5.4 Tutorial - How to using bootstrap v4 beta in laravel framework [part 4]
2017-10-26Laravel 5.4 error - The stream or file 'laravel.log' could not be .... Permission denied
2017-10-05Postgresql - Automatic Backup (.sql, .custom) with Cronjob in Centos 7
2017-09-23How to solve Ruby 2.4 : Failed to load libmysql.dll
2017-09-21How to solve : select2 jquery not work after clone
2017-09-21How to Install golang (go1.9) on Ubuntu 16.04
2017-09-03How to solve postgresql ERROR: cannot cast type time without timezone to date
2017-08-27Solve Apache (a2ensite) - ERROR: Site squirrelmail does not exist!
2017-08-26Solve ubuntu error - E: Package 'dovecot' has no installation candidate
2017-08-26Solve ubuntu error - dpkg was interrupted, you must manually run 'sudo dpkg --configure -a'
2017-08-19Mysql error - this is incompatible with sql_mode=only_full_group_by
2017-08-17Codeigniter(PHP) Error - mysqli: Headers and client library minor version mismatch.
2017-08-13Ubuntu server error - RTNETLINK answers: File exists, Failed to bring up enp0s8
2017-08-04Android Studio Error - app.MainActivity has leaked window com.android.internal.policy
2017-08-04Android Studio Error (Gradle) - Could not find method compile() for arguments [com.android.volley]
2017-07-20Laravel 5.2 error - [InvalidArgumentException] Please provide a valid cache path.
2017-07-12PHP error - SSL operation failed .. OpenSSL error:14090086:.. get serve:certificate verify failed
2017-06-18Create https localhost (ssl) on ubuntu 16.04
2017-06-14Dual boot problem - Error: no such partition. Entering rescue mode.
2017-06-13ssh problem (ssh-add) - Permissions 0777 for ' ssh id_rsa' are too open.
2017-06-12Laravel 5.4 error - file_put_contents(cache services.php) failed to open stream. Permission denied



Tags:
mysql
error
group by
query
phpmyadmin
sql
database
ubuntu
fix
linux
aggregate
localhost