Skip to main content

mysql crash! TIMESTAMP with implicit DEFAULT value is deprecated.

Comments

6 comments

  • stefano_ts
    I partially solved in this way: - in my.cfg i added the following line: innodb_force_recovery = 1 - i finally managed to start mysql service - i removed the line innodb_force_recovery = 1 from my.cfg - i stopped/started mysql service. But in /var/lib/mysql/... .err i's yet reported: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). what can I do? Thanks
    0
  • cPanelMichael
    [Warning] TIMESTAMP with implicit DEFAULT value is deprecated.

    Hello :) Do you have a corresponding entry in your /etc/my.cnf file for "timestamp"? Thank you.
    0
  • stefano_ts
    The file my.cnf contains this information: [mysqld] innodb_file_per_table=1 bind-address=127.0.0.1 max_allowed_packet=268435456 open_files_limit=10000 default-storage-engine=MyISAM #innodb_force_recovery = 1
    Thank you.
    0
  • cPanelMichael
    But in /var/lib/mysql/... .err i's yet reported: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

    You can add the following entry to your /etc/my.cnf file (assuming you are using MySQL 5.6):
    explicit_defaults_for_timestamp=1
    Then, restart MySQL. This variable is documented at:
    0
  • Venomous21
    I am also receiving the [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details) but mysql appears to be running fine. I just upgraded from 5.5 to 5.6 tonight. Here's my.cnf: [mysqld] performance-schema=0 slow-query-log=1 long-query-time=1 max_connections=500 # safe-show-database open_files_limit=10000 innodb_buffer_pool_size=134217728 max_allowed_packet=268435456 default-storage-engine=MyISAM innodb_file_per_table=1 Should I definitely add explicit_defaults_for_timestamp=1 ? If I don't, will it cause problems? I read the documentation and find parts of it hard to understand. Appreciate your help. Thanks.
    0
  • cPanelMichael
    Should I definitely add explicit_defaults_for_timestamp=1 ? If I don't, will it cause problems? I read the documentation and find parts of it hard to understand. Appreciate your help. Thanks.

    It's not required at this time, but it's a good idea to add the value in the future because of it's deprecation status. Thank you.
    0

Please sign in to leave a comment.