Code: Select all
[root @ centos ~]$ mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 22993
Server version: 10.3.7-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none]>
Code: Select all
MariaDB [(none]> SET sql_mode = 'moduri';
MariaDB [(none]> SET sql_mode = 'TRADITIONAL,ONLY_FULL_GROUP_BY';
Code: Select all
MariaDB [(none]> SET GLOBAL sql_mode = 'moduri';
MariaDB [(none]> SET GLOBAL sql_mode = 'TRADITIONAL,ONLY_FULL_GROUP_BY';
Code: Select all
MariaDB [(none]> SET @@SQL_MODE = CONCAT(@@SQL_MODE, ',ONLY_FULL_GROUP_BY');
Code: Select all
MariaDB [(none]> SET @@SQL_MODE = REPLACE(@@SQL_MODE, 'ONLY_FULL_GROUP_BY', '');
Code: Select all
MariaDB [(none]> SELECT @@SQL_MODE LIKE '%ONLY_FULL_GROUP_BY%';