View Single Post
  #7  
Old 17th January 2024, 12:42
mogo mogo is offline
Senior Member
 
Join Date: Jun 2020
P2P
Posts: 97
Default
Quote:
Originally Posted by soneigr View Post
Good evening, where am I going to write this? I changed php from 7.1 to 5.5 and then to 5.6
If you set globals in MySQL:

SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';
SET SESSION sql_mode = 'NO_ENGINE_SUBSTITUTION';
This will not set it PERMANENTLY, and it will revert after every restart.

So you should set this in your config file (e.g. /etc/mysql/my.cnf in the [mysqld] section), so that the changes remain in effect after MySQL restart:

Config File: /etc/mysql/my.cnf

[mysqld]
sql_mode = "NO_ENGINE_SUBSTITUTION"
Reply With Quote