I think after 3 years, they know that.
In fact, the correct answer for these days is already given in post #2.So I decided to add it.
I am getting this error. Do you know the fix?You can just set:
Code:sql_mode=
In /etc/my.cnf.d/server.cnf under [mysqld] section.
I also got the same error. Cannot backup (dump) DB when setting sqlmode = in etc/my.cnfThe backup may not be complete it says. Please open a seperate topic for your own issues.
sql_mode=NO_ENGINE_SUBSTITUTION
Mysql 5.7 or higher needs quotes:sql_mode=
sql-mode=""
SELECT @@GLOBAL.sql_mode;
And set them:SELECT @@SESSION.sql_mode;
SET GLOBAL sql_mode = '';
SET sql_mode = '';
that's a very odd configuration, plus, optimized values for you, are not the same for me or anyone else.I fixed it with this configuration in my.cnf. Can both backup the database (dump) and fix the "Disable Strict" error. And it has optimized settings, you can refer to it under "key_buffer_size"
#
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]
#
# include *.cnf from the config directory
#
#!includedir /etc/my.cnf.d
[mysqld]
max_allowed_packet=64M
local-infile=0
innodb_file_per_table
#skip-grant-tables
innodb_default_row_format=dynamic
sql_mode =
key_buffer_size = 384M #400M #384M
max_allowed_packet = 50M #2M #1M
sort_buffer_size = 3M #2M #8M #2M #8M #2M
read_buffer_size = 3M #2M #8M #2M #8M #2M
read_rnd_buffer_size = 8M #16M #8M #16M #8M
myisam_sort_buffer_size = 96M #64M #96M #64M #128M #64M
thread_cache_size = 8
query_cache_size = 600M #128M #500M #400M #300M #150M #256M #128M #32M #128M #50M #256M #50M #32M
Yes, I get it. I also explain that You do not need configuration from this line downthat's a very odd configuration, plus, optimized values for you, are not the same for me or anyone else.
it depends on servers specs, and mysql load of your users.