DesignTeen

Um blog de tutoriais e dicas

MySQL

GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

2 de março de 2022 MySQL Tutoriais
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

Edite o arquivo

my.cnf ou  my.ini

E adicione o seguinte código


sql-mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Agora reinicie o serviço mysql.

Importar e Exportar MYSQL via SHELL

Como criar o created_at e o updated_at no Mysql?

Pesquisar
Posts recentes
  • Importação InfoVet
  • Como liberar o acesso remoto do MySQL no Ubuntu 10.04 LTS e acessar pelo PHP
  • Como conectar SQL Server 2019 no DBeaver
  • Como obter IDs das salas no Telegram
  • Importar Vetus arquivo .DUMP no Postgres
Categorias
  • Firebird
  • Linux
  • Marketing
  • MySQL
  • PHP
  • PostgreSQL
  • Sem categoria
  • SQL Server
  • Tutoriais
Proudly powered by WordPress | Theme: Doo by ThemeVS.