Bug #70437 | "TIMESTAMP ... is deprecated." warning for mysql.event and mysql.proc | ||
---|---|---|---|
Submitted: | 26 Sep 2013 13:47 | Modified: | 9 Nov 2017 13:22 |
Reporter: | Valeriy Kravchuk | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S3 (Non-critical) |
Version: | 5.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysql_upgrade, timestamp, upgrade |
[26 Sep 2013 13:47]
Valeriy Kravchuk
[26 Sep 2013 14:15]
MySQL Verification Team
Thank you for the bug report.
[16 Sep 2014 11:39]
Michael McKnight
I'm still seeing this problem in 5.6.20... mysql> select table_schema, table_name, column_name, column_default from information_schema.columns where column_type='TIMESTAMP'; +--------------------+-------------------------------------+------------------+---------------------+ | table_schema | table_name | column_name | column_default | +--------------------+-------------------------------------+------------------+---------------------+ | mysql | columns_priv | Timestamp | CURRENT_TIMESTAMP | | mysql | event | created | CURRENT_TIMESTAMP | | mysql | event | modified | CURRENT_TIMESTAMP | | mysql | general_log | event_time | CURRENT_TIMESTAMP | | mysql | innodb_index_stats | last_update | CURRENT_TIMESTAMP | | mysql | innodb_table_stats | last_update | CURRENT_TIMESTAMP | | mysql | proc | created | CURRENT_TIMESTAMP | | mysql | proc | modified | CURRENT_TIMESTAMP | | mysql | procs_priv | Timestamp | CURRENT_TIMESTAMP | | mysql | proxies_priv | Timestamp | CURRENT_TIMESTAMP | | mysql | slow_log | start_time | CURRENT_TIMESTAMP | | mysql | tables_priv | Timestamp | CURRENT_TIMESTAMP | | performance_schema | events_statements_summary_by_digest | FIRST_SEEN | 0000-00-00 00:00:00 | | performance_schema | events_statements_summary_by_digest | LAST_SEEN | 0000-00-00 00:00:00 | | performance_schema | host_cache | FIRST_SEEN | 0000-00-00 00:00:00 | | performance_schema | host_cache | LAST_SEEN | 0000-00-00 00:00:00 | | performance_schema | host_cache | FIRST_ERROR_SEEN | 0000-00-00 00:00:00 | | performance_schema | host_cache | LAST_ERROR_SEEN | 0000-00-00 00:00:00 | +--------------------+-------------------------------------+------------------+---------------------+ I manually corrected proc and event "modified" fields but am unable to change the performance_schema database... I get access denied when I try to alter tables within performance_schema. I still get the error "[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details)" when the database starts up. Is there any ETA as to when this will get fixed, or is there a way I can correct it manually? I'd rather not set explicit_defaults_for_timestamp since it's deprecated as well. Thank you
[9 Nov 2017 13:22]
Erlend Dahl
Posted by developer: [29 Aug 2017 0:16] Praveenkumar Hulakund Following warning is printed on server startup if --explicit_defaults_for_timestamp option is not used in 5.6, [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). The above warning is *not* reported because of mysql.proc, mysql.events or any other user table having timestamp column(s) with implicit default value.