]> git.pld-linux.org Git - packages/mysql.git/commitdiff
set explicit_defaults_for_timestamp to avoid warning
authorElan Ruusamäe <glen@delfi.ee>
Mon, 12 Dec 2016 06:45:10 +0000 (08:45 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 12 Dec 2016 06:51:09 +0000 (08:51 +0200)
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated.
Please use --explicit_defaults_for_timestamp server option (see documentation
for more details).

the value set should be the previous behaviour except no warning in logs

mysqld.conf

index b1351a06037e7e4dec395275e090dde4986287c9..9a576f25d38a898089e344abc2fc0976b86d22b2 100644 (file)
@@ -184,6 +184,9 @@ slow-query-log-file = /var/log/mysql/slow.log
 #query_cache_size=8M
 #query_cache_limit=1M
 
+# https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp
+explicit_defaults_for_timestamp=false
+
 # Fulltext search options
 #ft_min_word_len=2
 
This page took 0.882843 seconds and 4 git commands to generate.