Remove ONLY_FULL_GROUP_BY in my.cnf file

Remove ONLY_FULL_GROUP_BY in my.cnf file

First you need to find my.cnf file location and then edit it. Enter following command in your ssh as root user.

mysql --help | grep my.cnf

Now you will get output something like this.

order of preference, my.cnf, $MYSQL_TCP_PORT,
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf

Mostly main MySQL configuration file my.cnf location is "/etc/my.cnf"

now open the file:

vim /etc/my.cnf

You will see some lines are as follow.

[mysqld]
performance-schema=0

You just need to add one line between them, then new text will be.

[mysqld]
sql_mode =
performance-schema=0

Just save the file and restart your MySQL services.

 mysql service restart

That's all.

  • Remove ONLY_FULL_GROUP_BY, Disable ONLY_FULL_GROUP_BY
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

How to access server via Remote Desktop (RDP)?

Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft, which provides a...

How to install Let’s Encrypt on CentOS 7 with Apache?

Today, we will show you, How to install Let’s Encrypt on CentOS 7 with Apache. Let’s Encrypt is a...

Domains are not showing in WHM -> List accounts

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

HOW TO INSTALL LITESPEED WEB SERVER IN LINUX SERVER?

Litespeed Cache is useful to increase high performance for your Wordpress Website. Following are...

How to check os version in Linux command line?

Linux is a free and open source operating system. There are many variants of Linux out there....