{"id":8199,"date":"2015-12-04T13:06:23","date_gmt":"2015-12-04T13:06:23","guid":{"rendered":"http:\/\/www.freefixer.com\/b\/?p=8199"},"modified":"2018-05-29T11:55:39","modified_gmt":"2018-05-29T11:55:39","slug":"warning-timestamp-with-implicit-default-value-is-deprecated-how-to-fix-it","status":"publish","type":"post","link":"https:\/\/www.freefixer.com\/b\/warning-timestamp-with-implicit-default-value-is-deprecated-how-to-fix-it\/","title":{"rendered":"[Warning] TIMESTAMP With Implicit DEFAULT Value Is Deprecated &#8211; How To Fix It"},"content":{"rendered":"<p>Did you just upgrade your <strong>MySQL<\/strong> server and got a warning about an\u00a0<strong>implicit<\/strong> <strong>TIMESTAMP<\/strong> <strong>default<\/strong> <strong>value<\/strong>\u00a0when starting mysqld.exe?<\/p>\n<pre>&gt;mysqld.exe\r\n 2015-12-04 13:17:27 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).<\/pre>\n<p>If you would like to find the databases, tables and column names that cause the warning message, just run the following query on the information_schema database:<\/p>\n<pre>mysql&gt; USE information_schema;\r\nDatabase changed\r\nmysql&gt; SELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME FROM Columns WHERE DATA_TYPE='datetime' AND IS_NULLABLE='NO' and COLUMN_DEFAULT IS NULL;\r\n+--------------+-------------+-------------+\r\n| TABLE_SCHEMA | TABLE_NAME | COLUMN_NAME |\r\n+--------------+-------------+-------------+\r\n| biggamedb | updatequeue | added |\r\n| ff_testdb | hosts | added |\r\n| ff_testdb | hosts | lastspotted |\r\n| ff_testdb | product | added |\r\n+--------------+-------------+-------------+\r\n4 rows in set (0.11 sec)<\/pre>\n<p>Hope that helped you fix the problem. Or did you go with the &#8211;explicit_defaults_for_timestamp flag?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you just upgrade your MySQL server and got a warning about an\u00a0implicit TIMESTAMP default value\u00a0when starting mysqld.exe? &gt;mysqld.exe 2015-12-04 13:17:27 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use &#8211;explicit_defaults_for_timestamp server option (see documentation for more details). If you would like to find the databases, tables and column names that cause the &hellip; <a href=\"https:\/\/www.freefixer.com\/b\/warning-timestamp-with-implicit-default-value-is-deprecated-how-to-fix-it\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">[Warning] TIMESTAMP With Implicit DEFAULT Value Is Deprecated &#8211; How To Fix It<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/posts\/8199"}],"collection":[{"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/comments?post=8199"}],"version-history":[{"count":4,"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/posts\/8199\/revisions"}],"predecessor-version":[{"id":8203,"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/posts\/8199\/revisions\/8203"}],"wp:attachment":[{"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/media?parent=8199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/categories?post=8199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freefixer.com\/b\/wp-json\/wp\/v2\/tags?post=8199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}